mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2025-10-30 02:12:22 +00:00
19 lines
341 B
C++
19 lines
341 B
C++
//
|
|
// Created by stephane bourque on 2021-07-21.
|
|
//
|
|
|
|
#include "Dashboard.h"
|
|
#include "StorageService.h"
|
|
|
|
namespace OpenWifi {
|
|
void DeviceDashboard::Create() {
|
|
uint64_t Now = OpenWifi::Now();
|
|
|
|
if(LastRun_==0 || (Now-LastRun_)>120) {
|
|
DB_.reset();
|
|
StorageService()->DevicesDB().GenerateDeviceReport(DB_);
|
|
LastRun_ = Now;
|
|
}
|
|
}
|
|
}
|