Uptime: support JSON config

This commit is contained in:
李通洲
2023-04-25 19:57:27 +08:00
parent 51bc06f60b
commit a4c8b93a07
13 changed files with 165 additions and 89 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ const char* ffDetectUptime(uint64_t* result)
struct sysinfo info;
if(sysinfo(&info) != 0)
return "sysinfo() failed";
*result = info.uptime;
*result = (uint64_t) info.uptime;
return NULL;
}