SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
net/ntopng/patches/patch-src_Ntop_cpp
Normal file
14
net/ntopng/patches/patch-src_Ntop_cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
64-bit time_t
|
||||
|
||||
Index: src/Ntop.cpp
|
||||
--- src/Ntop.cpp.orig
|
||||
+++ src/Ntop.cpp
|
||||
@@ -3044,7 +3044,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);
|
Loading…
Add table
Add a link
Reference in a new issue