$OpenBSD: patch-src_Ntop_cpp,v 1.4 2021/12/07 09:47:38 sthen Exp $

64-bit time_t

Index: src/Ntop.cpp
--- src/Ntop.cpp.orig
+++ src/Ntop.cpp
@@ -3066,7 +3066,7 @@ void Ntop::resetStats() {
   char buf[32];
   last_stats_reset = time(NULL);
 
-  snprintf(buf, sizeof(buf), "%ld", last_stats_reset);
+  snprintf(buf, sizeof(buf), "%lld", (long long)last_stats_reset);
 
   /* Saving this is essential to reset inactive hosts across ntopng restarts */
   getRedis()->set(LAST_RESET_TIME, buf);
