mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-21 15:27:30 +01:00
review user vinformation block, reorder reactive var in jobList
This commit is contained in:
@@ -32,10 +32,6 @@ export function scaleNumber(x, p = '') {
|
||||
}
|
||||
}
|
||||
|
||||
export function roundTwoDigits(x) {
|
||||
return Math.round(x * 100) / 100
|
||||
}
|
||||
|
||||
export function scaleNumbers(x, y, p = '') {
|
||||
const oldPower = power[prefix.indexOf(p)]
|
||||
const rawXValue = x * oldPower
|
||||
@@ -77,6 +73,10 @@ export function formatUnixTime(t, withDate = false) {
|
||||
}
|
||||
}
|
||||
|
||||
export function roundTwoDigits(x) {
|
||||
return Math.round(x * 100) / 100
|
||||
}
|
||||
|
||||
// const equalsCheck = (a, b) => {
|
||||
// return JSON.stringify(a) === JSON.stringify(b);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user