forked from spotify/luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix durations in D3 graph (fixes spotify#2620)
Fixes the duration calculation. Both date objects `startTime` and `finishTime` are in milliseconds, so the additional multiplication with 1000 was wrong. Also, the duration is now calculated with: duration = last_updated - time_running as it is done in datadog_metric.py:83 I decided to not display the time if the duration is longer than a day, because then it gets messy with the Date objects (would require a conversion to day of year, not day of month).
- Loading branch information
1 parent
8a485cd
commit d146cd3
Showing
1 changed file
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters