Disable shared memory stats for Windows builds.
This commit is contained in:
parent
6caa02c63f
commit
3c4bc6a006
1 changed files with 2 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue