Flooring number down to whole second (#38065)

This commit is contained in:
igoristic 2019-06-12 15:24:33 -04:00 committed by GitHub
parent ce80d0063a
commit 35a5706e16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ export const parseProps = props => {
relocationType: type === 'PRIMARY_RELOCATION' ? 'Primary Relocation' : normalizeString(type),
stage: normalizeString(stage),
startTime: formatDateTimeLocal(startTimeInMillis),
totalTime: formatMetric(totalTimeInMillis / 1000, '00:00:00'),
totalTime: formatMetric(Math.floor(totalTimeInMillis / 1000), '00:00:00'),
isCopiedFromPrimary: !isPrimary || type === 'PRIMARY_RELOCATION',
sourceName: source.name === undefined ? 'n/a' : source.name,
targetName: target.name,