WindowLog.js
[gitlive] / GitLogParser.js
index 758291c..fe6f0be 100644 (file)
@@ -145,15 +145,14 @@ var res = GitLogParser.parse(xDate.Date.parseDate('2012-07-31', 'Y-m-d'));
 for (var h in res) {
     for (var p in res[h]) {
         if (p == 'IDLE') {
-            print(h + ' ' + res[h][p].total/60000 +'m IDLE' );
+            print(h + ' ' + Math.floor(res[h][p].total/60000) +') IDLE' );
             continue;
         }
-        print(h + ' ' + res[h][p].total/60000 +'m ' + p ); break;
-        print("hp?"+JSON.stringify(res[h][p]));
-
+        print(h + ' ' + Math.floor(res[h][p].total/60000) +'m ' + p );  
+       
         for (var k in res[h][p].items) {
-            print(JSON.stringify(res[h][p].items[k]));
-            print( '     ' + res[h][p].items[k].span/60000 +'m ' + res[h][p].items[k].line );
+             
+            print( '     ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line );
                  
         }