[freeside-commits] freeside/httemplate/view svc_port.cgi,1.2,1.3
Erik Levinson
levinse at wavetail.420.am
Wed Feb 2 22:18:44 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv8243/httemplate/view
Modified Files:
svc_port.cgi
Log Message:
torrus misc fixes, RT10574
Index: svc_port.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_port.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- svc_port.cgi 31 Jan 2011 06:30:36 -0000 1.2
+++ svc_port.cgi 3 Feb 2011 06:18:41 -0000 1.3
@@ -30,12 +30,8 @@
$svcnum = $1;
}
-my $start = '';
-my $end = '';
-if ( $cgi->param('start') && $cgi->param('end') ) {
- $start = $cgi->param('start');
- $end = $cgi->param('end');
-}
+my $start = $cgi->param('start');
+my $end = $cgi->param('end');
sub preset_range {
my($start,$end,$label,$date_format) = (shift,shift,shift,shift);
@@ -52,7 +48,7 @@
if($start && $end) {
$graph = "<BR><BR><IMG SRC=${p}/view/port_graph.html?svcnum=$svcnum;".
- "start=".str2time($start).";end=".str2time($end).">";
+ "start=".str2time("$start 00:00:00").";end=".str2time("$end 23:59:59").">";
}
return '
More information about the freeside-commits
mailing list