mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
添加Openssl,Gmssl加密库
This commit is contained in:
@@ -24,6 +24,7 @@ bool Config::init(std::string filename)
|
||||
JSON::read(jsonroot, "weburl", option.webSrvUrl);
|
||||
JSON::read(jsonroot, "launchdate", option.lunchDate);
|
||||
JSON::read(jsonroot, "exportpath", option.exportpath);
|
||||
JSON::read(jsonroot, "windowEnabled", option.windowEnabled);
|
||||
|
||||
if (jsonroot.contains("database"))
|
||||
{
|
||||
@@ -110,6 +111,14 @@ bool Config::init(std::string filename)
|
||||
JSON::read(jsonItem, "enabled", info.enabled);
|
||||
}
|
||||
}
|
||||
|
||||
if (jsonroot.contains("statistics"))
|
||||
{
|
||||
njson& json = jsonroot["statistics"];
|
||||
JSON::read(json, "enabled", option.stat.enabled);
|
||||
JSON::read(json, "interval", option.stat.interval);
|
||||
if (option.stat.interval <= 0) { option.stat.interval = 60; }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user