Skip to content
Snippets Groups Projects
Commit ac570cb9 authored by Amin Ben Romdhane's avatar Amin Ben Romdhane
Browse files

Fix compilation error

parent d15e6c63
No related branches found
No related tags found
1 merge request!8Fix compilation error
Pipeline #182209 passed
...@@ -173,7 +173,7 @@ static void run_memory_monitor(void) ...@@ -173,7 +173,7 @@ static void run_memory_monitor(void)
// Update CriticalRiseTimeStamp to the current time // Update CriticalRiseTimeStamp to the current time
g_memory_ctx.critical_rise_time = time(NULL); g_memory_ctx.critical_rise_time = time(NULL);
snprintf(buf, sizeof(buf), "%ld", g_memory_ctx.critical_rise_time); snprintf(buf, sizeof(buf), "%ld", (long int)g_memory_ctx.critical_rise_time);
sysmngr_uci_set("sysmngr", "memory", "critical_rise_time", buf); sysmngr_uci_set("sysmngr", "memory", "critical_rise_time", buf);
if (g_memory_ctx.enable_critical_log) { if (g_memory_ctx.enable_critical_log) {
...@@ -192,7 +192,7 @@ static void run_memory_monitor(void) ...@@ -192,7 +192,7 @@ static void run_memory_monitor(void)
// Update CriticalFallTimeStamp to the current time // Update CriticalFallTimeStamp to the current time
g_memory_ctx.critical_fall_time = time(NULL); g_memory_ctx.critical_fall_time = time(NULL);
snprintf(buf, sizeof(buf), "%ld", g_memory_ctx.critical_fall_time); snprintf(buf, sizeof(buf), "%ld", (long int)g_memory_ctx.critical_fall_time);
sysmngr_uci_set("sysmngr", "memory", "critical_fall_time", buf); sysmngr_uci_set("sysmngr", "memory", "critical_fall_time", buf);
if (g_memory_ctx.enable_critical_log) { if (g_memory_ctx.enable_critical_log) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment