fix: performance page linechart tooltip time display with time unit
This commit is contained in:
@@ -127,8 +127,8 @@ export function simpleTimeLabel(second, fixedNumber = 0) {
|
||||
const hour = 60 * 60;
|
||||
const minutes = 60;
|
||||
const dd = Math.floor(second / day);
|
||||
const hh = Math.floor((second % day) / hour);
|
||||
const mm = Math.floor((second % hour) / minutes);
|
||||
const hh = Math.floor((second / hour) / day);
|
||||
const mm = Math.floor((second / hour) / minutes);
|
||||
|
||||
if(dd > 0){
|
||||
return (second / day).toFixed(fixedNumber) + "d";
|
||||
|
||||
Reference in New Issue
Block a user