mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 10:41:14 +00:00
Verified the TODO comments and make durations be in seconds.
This commit is contained in:
@@ -101,7 +101,7 @@ export function formatDataType(field, referenceTimestampStr = null) {
|
||||
};
|
||||
},
|
||||
duration(durationString) {
|
||||
const humanizedDuration = moment.duration(parseInt(durationString, 10)).humanize();
|
||||
const humanizedDuration = moment.duration(Number(durationString), 'seconds').humanize();
|
||||
return {
|
||||
value: humanizedDuration,
|
||||
title: humanizedDuration,
|
||||
|
||||
Reference in New Issue
Block a user