1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-03-02 03:40:21 +00:00

calculate all duration in the client

This cleans up some inconsistency where sometimes 'completed-started' happened
on the client side and sometimes on the server. Also should fix the 'cumulative
time' issue mentioned in #8
This commit is contained in:
Oliver Giles
2017-11-06 19:08:14 +02:00
parent 7a7c5bc5aa
commit 116dfaa3d0
3 changed files with 4 additions and 6 deletions

View File

@@ -330,7 +330,7 @@ var Job = function() {
fillColor: "darkseagreen",
strokeColor: "forestgreen",
data: msg.recent.map(function(e) {
return e.duration;
return e.completed - e.started;
}).reverse()
}]
}, {