ports/net/ntopng/patches/patch-src_InfluxDBTimeseriesExporter_cpp

17 lines
660 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
64-bit time_t
Index: src/InfluxDBTimeseriesExporter.cpp
--- src/InfluxDBTimeseriesExporter.cpp.orig
+++ src/InfluxDBTimeseriesExporter.cpp
@@ -68,8 +68,8 @@ void InfluxDBTimeseriesExporter::createDump() {
cursize = 0;
/* Use the flushTime as the fname */
- snprintf(fname, sizeof(fname), "%s%u_%u_%lu%s", fbase, (u_int16_t)iface->get_id(),
- num_exports, flushTime, TMP_TRAILER);
+ snprintf(fname, sizeof(fname), "%s%u_%u_%lld%s", fbase, (u_int16_t)iface->get_id(),
+ num_exports, (long long)flushTime, TMP_TRAILER);
if(!(fp = fopen(fname, "wb")))
ntop->getTrace()->traceEvent(TRACE_ERROR, "[%s] Unable to dump TS data onto %s: %s",