Disable shared memory stats for Windows builds.

This commit is contained in:
Thulinma 2016-05-25 12:24:56 +02:00
parent 6caa02c63f
commit 3c4bc6a006

View file

@ -1186,6 +1186,7 @@ void Controller::handlePrometheus(HTTP::Parser & H, Socket::Connection & conn, i
}
}
long long shm_total = 0, shm_free = 0;
#if !defined(__CYGWIN__) && !defined(_WIN32)
{
struct statvfs shmd;
IPC::sharedPage tmpConf(SHM_CONF, DEFAULT_CONF_PAGE_SIZE, false, false);
@ -1195,6 +1196,7 @@ void Controller::handlePrometheus(HTTP::Parser & H, Socket::Connection & conn, i
shm_total = (shmd.f_blocks*shmd.f_frsize)/1024;
}
}
#endif
if (mode == PROMETHEUS_TEXT){