var totals = { work : 0 , idle: 0}
for (var h in res) {
for (var p in res[h]) {
- if (p == 'LONG') {
+ if (p == 'LONGIDLE') {
var idletime = Math.floor(res[h][p].total/60000) ;
print(h + ' ' + Math.floor(res[h][p].total/60000) +'m IDLE' );
totals.idle += idletime;