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:
@@ -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()
|
||||
}]
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user