mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fix missing rounding for time span values
This commit is contained in:
parent
72c1495165
commit
1761eedcad
1 changed files with 4 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ function ConvertFrom-TimeSpan()
|
|||
return (
|
||||
[string]::Format(
|
||||
'{0}d',
|
||||
$TimeSpan.TotalDays
|
||||
([math]::Round($TimeSpan.TotalDays, 2))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ function ConvertFrom-TimeSpan()
|
|||
return (
|
||||
[string]::Format(
|
||||
'{0}h',
|
||||
$TimeSpan.TotalHours
|
||||
([math]::Round($TimeSpan.TotalHours, 2))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ function ConvertFrom-TimeSpan()
|
|||
return (
|
||||
[string]::Format(
|
||||
'{0}m',
|
||||
$TimeSpan.TotalMinutes
|
||||
([math]::Round($TimeSpan.TotalMinutes, 2))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -36,7 +36,7 @@ function ConvertFrom-TimeSpan()
|
|||
return (
|
||||
[string]::Format(
|
||||
'{0}s',
|
||||
$TimeSpan.TotalSeconds
|
||||
([math]::Round($TimeSpan.TotalSeconds, 2))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue