mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/critmon: print info before sleep
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
696c6f412e
commit
01f8bef2ba
1 changed files with 4 additions and 4 deletions
|
|
@ -478,15 +478,15 @@ static int critmon_daemon(int argc, char **argv)
|
|||
|
||||
while (!g_critmon.stop)
|
||||
{
|
||||
/* Wait for the next sample interval */
|
||||
|
||||
sleep(CONFIG_SYSTEM_CRITMONITOR_INTERVAL);
|
||||
|
||||
exitcode = critmon_list_once();
|
||||
if (exitcode != EXIT_SUCCESS)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/* Wait for the next sample interval */
|
||||
|
||||
sleep(CONFIG_SYSTEM_CRITMONITOR_INTERVAL);
|
||||
}
|
||||
|
||||
/* Stopped */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue