[freeside-commits] freeside/FS/FS/UI Web.pm,1.18,1.19
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Nov 29 18:27:57 PST 2006
- Previous message: [freeside-commits] freeside/FS/FS/part_export sqlradius.pm, 1.21,
1.22
- Next message: [freeside-commits]
freeside/FS/FS AccessRight.pm, 1.13, 1.14 Conf.pm,
1.170, 1.171 cust_main.pm, 1.252, 1.253 Schema.pm, 1.34,
1.35 svc_acct.pm, 1.206, 1.207
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail:/tmp/cvs-serv12489/FS/FS/UI
Modified Files:
Web.pm
Log Message:
prepaid download/upload tracking
Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/Web.pm,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Web.pm 24 Nov 2006 08:49:09 -0000 1.18
+++ Web.pm 30 Nov 2006 02:27:55 -0000 1.19
@@ -64,6 +64,17 @@
}
+sub bytecount_unexact {
+ my $bc = shift;
+ return("$bc bytes")
+ if ($bc < 1000);
+ return(sprintf("%.2f Kbytes", $bc/1000))
+ if ($bc < 1000000);
+ return(sprintf("%.2f Mbytes", $bc/1000000))
+ if ($bc < 1000000000);
+ return(sprintf("%.2f Gbytes", $bc/1000000000));
+}
+
###
# cust_main report subroutines
###
- Previous message: [freeside-commits] freeside/FS/FS/part_export sqlradius.pm, 1.21,
1.22
- Next message: [freeside-commits]
freeside/FS/FS AccessRight.pm, 1.13, 1.14 Conf.pm,
1.170, 1.171 cust_main.pm, 1.252, 1.253 Schema.pm, 1.34,
1.35 svc_acct.pm, 1.206, 1.207
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list