diff options
Diffstat (limited to 'lib/XXV/MODULES')
| -rw-r--r-- | lib/XXV/MODULES/RECORDS.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/XXV/MODULES/RECORDS.pm b/lib/XXV/MODULES/RECORDS.pm index 6f8f446..8c65d42 100644 --- a/lib/XXV/MODULES/RECORDS.pm +++ b/lib/XXV/MODULES/RECORDS.pm @@ -697,9 +697,9 @@ sub readData { # use store capacity and recordings length to calc free capacity $obj->{CapacityTotal} = $totalDuration; if($totalSpace > 1) { - $obj->{CapacityFree} = ($free * $totalDuration) / $totalSpace; + $obj->{CapacityFree} = int(($free * $totalDuration) / $totalSpace); } else { - $obj->{CapacityFree} = $free * 3600 / 2000; # use 2GB at one hour as base + $obj->{CapacityFree} = int($free * 3600 / 2000); # use 2GB at one hour as base } $obj->{CapacityPercent} = ($totalSpace * 100 / ($free + $totalSpace)) unless($obj->{CapacityPercent}); |
