time: include year;
authorwenzelm
Tue, 19 Sep 2006 20:58:05 +0200
changeset 20612 706c22b3a8fb
parent 20611 ef4661e2e602
child 20613 8f2731bfe86f
time: include year;
Admin/isatest-statistics
--- a/Admin/isatest-statistics	Tue Sep 19 20:53:42 2006 +0200
+++ b/Admin/isatest-statistics	Tue Sep 19 20:58:05 2006 +0200
@@ -58,7 +58,7 @@
         my $m = $6;
         my $s = $7;
 
-        my $date = $month - 1 + ($day - 1) / 31;
+        my $date = $year + ($month - 1) / 31 + ($day - 1) / 365;
         my $time = ($h * 3600 + $m * 60 + $s) / 60;
 
         printf "%s %.2f %.2f\n", $name, $date, $time;
@@ -71,7 +71,7 @@
   gnuplot <<EOF
 set terminal png
 set output "${SESSION}.png"
-plot [] [0:40] "$SESSION_DATA" using 2:3 title "$SESSION" smooth sbezier, "$SESSION_DATA" using 2:3 title "$SESSION" smooth csplines
+plot [] [0:50] "$SESSION_DATA" using 2:3 title "$SESSION" smooth sbezier, "$SESSION_DATA" using 2:3 title "$SESSION" smooth csplines
 EOF
 done