mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2026-01-28 02:23:02 +00:00
19 lines
334 B
C++
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;
|
|
}
|
|
}
|
|
}
|