Skip to content

Commit

Permalink
fix: Show second in monitoing realtime
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Jul 29, 2020
1 parent 942433f commit ab86668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const getValueByUnit = (num, unit) => {

export const getFormatTime = (ms, showDay) =>
getLocalTime(Number(ms))
.format(showDay ? 'MM-DD HH:mm' : 'HH:mm')
.format(showDay ? 'MM-DD HH:mm' : 'HH:mm:ss')
.replace(/:00$/g, '')

export const getChartData = ({
Expand Down

0 comments on commit ab86668

Please sign in to comment.