This commit is contained in:
root 2016-12-05 09:31:03 +01:00
parent 4d20ffea0c
commit 2861883432

View File

@ -319,7 +319,7 @@ sub hr_bytes {
# Calculates the parameter passed in bytes, then rounds it to the nearest integer
sub hr_bytes_rnd {
my $num = shift;
return "0B" unless defined($num) ;
return "0B" if $num eq "NULL" ;
if ( $num >= ( 1024**3 ) ) { #GB