Round instead of floor to be more accurate to value

pull/645/head
Patrick Fruh 2020-06-09 20:02:02 +02:00
parent 2fe56b1e92
commit a8fb5ce80e
1 changed files with 2 additions and 2 deletions

View File

@ -167,9 +167,9 @@ export default Vue.mixin({
},
humanTime(val) {
if (val >= 1000) {
return Math.floor(val / 1000) + " ms"
return Math.round(val / 1000) + " ms"
}
return Math.floor(val) + " μs"
return Math.round(val) + " μs"
},
firstDayOfMonth(date) {
return startOfMonth(date)