From 1dc05cac0985efd18dfff9277f6bb7d6fddcb8eb Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Thu, 4 Feb 2021 15:11:58 +0100 Subject: [PATCH] update uptime via villasnode API --- src/ic/ic-store.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ic/ic-store.js b/src/ic/ic-store.js index d9ae16e..7cf314a 100644 --- a/src/ic/ic-store.js +++ b/src/ic/ic-store.js @@ -84,6 +84,7 @@ class InfrastructureComponentStore extends ArrayStore { let tempIC = action.ic; if(!tempIC.managedexternally){ tempIC.state = action.data.state; + tempIC.uptime = action.data.time_now - action.data.time_started; tempIC.statusupdateraw = action.data; AppDispatcher.dispatch({ type: 'ics/start-edit',