diff options
-rw-r--r-- | lib/OPMode.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index e1af622..c6991b0 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -105,10 +105,10 @@ sub conv_bytes { if ($bytes > 1024 && $bytes < 1048576){ $bytes = $bytes/1024; $suffix = "K"; - } elsif ($bytes > 1048576 && $bytes < 1073741824){ + } elsif ($bytes >= 1048576 && $bytes < 1073741824){ $bytes = $bytes/1048576; $suffix = "M"; - } elsif ($bytes > 1073741824){ + } elsif ($bytes >= 1073741824){ $bytes = $bytes/1073741824; $suffix = "G"; } |