fix(frontend): broken percentage device status dashboard
This commit is contained in:
parent
145c5e9426
commit
1859dfc1a4
|
|
@ -58,7 +58,8 @@ const Page = () => {
|
|||
setDevicesStatus([onlinePercentage, 100 - onlinePercentage])
|
||||
}else{
|
||||
onlinePercentage = Number(onlinePercentage.toFixed(1))
|
||||
setDevicesStatus([onlinePercentage, 100 - onlinePercentage])
|
||||
let offlinePercentage = 100 - onlinePercentage
|
||||
setDevicesStatus([onlinePercentage, Number(offlinePercentage.toFixed(1))])
|
||||
}
|
||||
|
||||
let prodClassLabels = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user