system/critmon: print info before sleep

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-06-19 23:35:11 +08:00 committed by David Sidrane
parent 696c6f412e
commit 01f8bef2ba

View File

@ -478,15 +478,15 @@ static int critmon_daemon(int argc, char **argv)
while (!g_critmon.stop) while (!g_critmon.stop)
{ {
/* Wait for the next sample interval */
sleep(CONFIG_SYSTEM_CRITMONITOR_INTERVAL);
exitcode = critmon_list_once(); exitcode = critmon_list_once();
if (exitcode != EXIT_SUCCESS) if (exitcode != EXIT_SUCCESS)
{ {
break; break;
} }
/* Wait for the next sample interval */
sleep(CONFIG_SYSTEM_CRITMONITOR_INTERVAL);
} }
/* Stopped */ /* Stopped */