Files
wlan-cloud-ucentralfms/src/Dashboard.cpp
2021-07-21 14:42:54 -07:00

19 lines
334 B
C++

//
// Created by stephane bourque on 2021-07-21.
//
#include "Dashboard.h"
#include "StorageService.h"
namespace uCentral {
void DeviceDashboard::Create() {
uint64_t Now = std::time(nullptr);
if(LastRun_==0 || (Now-LastRun_)>120) {
DB_.reset();
Storage()->GenerateDeviceReport(DB_);
LastRun_ = Now;
}
}
}