stat watchdog

This commit is contained in:
2021-02-12 19:10:11 +01:00
parent c43c332fdf
commit 1ffb12ac9b
3 changed files with 13 additions and 17 deletions

View File

@ -15,13 +15,12 @@ static bool globalStatsCmd(uint8_t argc, char **args) {
t_deviceStats *deviceStats = getGlobalDeviceStats();
sendFormatString(\
"Global Device statistics\n\r" \
" Total running hours: %ld\n\r" \
" Total power cycles: %ld\n\r" \
" Total requests: %ld\n\r" \
" Total failures: %ld\n\r" \
" Total running hours: %ld\n\r" \
" Total power cycles: %ld\n\r" \
" Total watchdog resets: %ld\n\r" \
"\n\r",
deviceStats->totalRunningHours, deviceStats->totalPowercycles,
deviceStats->totalRequests, deviceStats->totalFailures
deviceStats->totalWatchdogResets
);
return true;