GitMonitor.js
[gitlive] / GitLogParser.js
index 7173e95..aa3fd8a 100644 (file)
@@ -20,6 +20,7 @@ GitLogParser = {
         
         
         }
+        
         var flines = File.read(  filename ).split("\n");        
         //print("loaded");
         // first just convert them..
@@ -105,7 +106,7 @@ GitLogParser = {
         
         //ret.start = xDate.Date.parseDate(this.date.format('Y-m-d') + ' ' + time, 'Y-m-d H:i:s');
         ret.start = xDate.Date.parseDate(
-                            (this.date ? this.date.format('Y-m-d')  : (new xDate.Date()).format('Y-m-d')) +
+                            (this.date ? this.date.format('Y-m-d')  :'2013-01-01') +
                             ' ' + time, 'Y-m-d H:i:s');
 
         while (ret.cmd === false) {
@@ -247,7 +248,7 @@ for (var h in GitLogParser.shours) {
         hsum.push({ desc : desc, tot : (GitLogParser.shours[h][desc]/60000).toFixed(2)*1 })
     }
     hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
-    print(h+': Total (' + htot +')');
+    print("\n\n" + h+': Total (' + htot +')');
     hsum.forEach(function(r) {
         print ("  " + r.tot + "   : " + r.desc);
     });