}
+
var flines = File.read( filename ).split("\n");
//print("loaded");
// first just convert them..
}
- print("parsed");
+ //print("parsed");
//print(JSON.stringify(lines,null,4));
// summarize data...
//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 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) {
}
}
+
+
+print("\nLONGIDLE : " +(totals.idle/60).toFixed(2) +"h" );
+print("\nShort Idle : " +(totals.shortidle/60).toFixed(2) +"h" );
+
+print("Worked: " + (totals.work/60).toFixed(2) +"h\n" );
+
+
+
for (var h in GitLogParser.shours) {
var hsum = [];
var htot = 0;
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);
});
-print("\nLONGIDLE : " +(totals.idle/60).toFixed(2) +"h" );
-print("\nShort Idle : " +(totals.shortidle/60).toFixed(2) +"h" );
-
-print("Worked: " + (totals.work/60).toFixed(2) +"h\n" );
-
-
// open file..
// read lines