[freeside-commits] freeside/FS/FS/UI bytecount.pm,1.5,1.6
Ivan,,,
ivan at wavetail.420.am
Sun Mar 15 03:30:28 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail.420.am:/tmp/cvs-serv23310/FS/FS/UI
Modified Files:
bytecount.pm
Log Message:
we're not a disk drive manufacturer, don't use halfass base-10 megs/gigs
Index: bytecount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/bytecount.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- bytecount.pm 30 Jan 2009 00:40:47 -0000 1.5
+++ bytecount.pm 15 Mar 2009 10:30:26 -0000 1.6
@@ -32,9 +32,9 @@
return("$bc bytes")
if ($bc < 1000);
return(sprintf("%.2f Kbytes", $bc/1024))
- if ($bc < 1000000);
+ if ($bc < 1048576);
return(sprintf("%.2f Mbytes", $bc/1048576))
- if ($bc < 1000000000);
+ if ($bc < 1073741824);
return(sprintf("%.2f Gbytes", $bc/1073741824));
}
More information about the freeside-commits
mailing list