fix nodes all showing offline
All checks were successful
Build Docker containers / Build (push) Successful in 42s
All checks were successful
Build Docker containers / Build (push) Successful in 42s
This commit is contained in:
@ -322,7 +322,7 @@ function onNodesUpdated(nodes) {
|
|||||||
let icon = icons.mqttDisconnected;
|
let icon = icons.mqttDisconnected;
|
||||||
|
|
||||||
// use offline icon for nodes older than configured node offline age
|
// use offline icon for nodes older than configured node offline age
|
||||||
if (nodesOfflineAge) {
|
if (nodesOfflineAge.value) {
|
||||||
const lastUpdatedAgeInMillis = now.diff(moment(node.updated_at));
|
const lastUpdatedAgeInMillis = now.diff(moment(node.updated_at));
|
||||||
if (lastUpdatedAgeInMillis > nodesOfflineAge.value * 1000) {
|
if (lastUpdatedAgeInMillis > nodesOfflineAge.value * 1000) {
|
||||||
icon = icons.offline;
|
icon = icons.offline;
|
||||||
|
Reference in New Issue
Block a user