opnsense-ports/databases/clickhouse/files/patch-src_Interpreters_AsynchronousMetrics.cpp
Franco Fichtner 9b365a1f8a */*: sync with upstream
Taken from: FreeBSD
2021-08-02 11:24:11 +02:00

11 lines
422 B
C++

--- src/Interpreters/AsynchronousMetrics.cpp.orig 2021-07-17 10:04:30 UTC
+++ src/Interpreters/AsynchronousMetrics.cpp
@@ -207,7 +207,7 @@ void AsynchronousMetrics::update()
new_values["Uptime"] = getContext()->getUptimeSeconds();
/// Process memory usage according to OS
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
{
MemoryStatisticsOS::Data data = memory_stat.get();