[freeside-commits] freeside/FS/FS cdr.pm,1.64,1.65

Mark Wells mark at wavetail.420.am
Mon Sep 27 15:59:49 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4969

Modified Files:
	cdr.pm 
Log Message:
don't use decimal minutes in call detail format

Index: cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr.pm,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -w -d -r1.64 -r1.65
--- cdr.pm	25 Sep 2010 00:56:32 -0000	1.64
+++ cdr.pm	27 Sep 2010 22:59:46 -0000	1.65
@@ -560,11 +560,7 @@
     elsif ( $opt{granularity} == 60 ) {#full minutes
       return sprintf("%.0fm",$sec/60);
     }
-    elsif ( $opt{granularity} == 6 || 
-            $opt{granularity} == 30 ) {#tenths or halves
-      return sprintf("%.01fm",$sec/60);
-    }
-    else { #seconds, or unspecified
+    else { #anything else
       return sprintf("%dm %ds", $sec/60, $sec%60);
     }
   };



More information about the freeside-commits mailing list