opnsense-ports/databases/clickhouse/files/patch-src_Interpreters_AsynchronousMetrics.cpp
Franco Fichtner bb3da3b392 */*: sync with upstream
Taken from: HardenedBSD
2020-09-14 05:14:12 +02:00

11 lines
416 B
C++

--- src/Interpreters/AsynchronousMetrics.cpp.orig 2020-08-31 16:22:57 UTC
+++ src/Interpreters/AsynchronousMetrics.cpp
@@ -194,7 +194,7 @@ void AsynchronousMetrics::update()
new_values["Uptime"] = context.getUptimeSeconds();
/// Process memory usage according to OS
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
{
MemoryStatisticsOS::Data data = memory_stat.get();