You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2021/06/20 14:05:53 UTC
[incubator-nuttx-apps] 02/02: system/critmon: print info before
sleep
This is an automated email from the ASF dual-hosted git repository.
davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 01f8bef2ba2a6003cbdebb22bc6c1e7c6240ccd3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Jun 19 23:35:11 2021 +0800
system/critmon: print info before sleep
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
system/critmon/critmon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/system/critmon/critmon.c b/system/critmon/critmon.c
index 93e5c04..6d1bf17 100644
--- a/system/critmon/critmon.c
+++ b/system/critmon/critmon.c
@@ -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 */