1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

update uptime via villasnode API

This commit is contained in:
Sonja Happ 2021-02-04 15:11:58 +01:00
parent 859fed46c0
commit 1dc05cac09

View file

@ -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',