cpu: make getCpuLoad more portable

../include/modules/cpu.hpp:4:10: fatal error: 'sys/sysinfo.h' file not found
 #include <sys/sysinfo.h>
          ^~~~~~~~~~~~~~~
This commit is contained in:
Jan Beich
2019-08-09 09:07:58 +00:00
parent c94ef092ff
commit d5df185ac6
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include <fmt/format.h>
#include <sys/sysinfo.h>
#include <unistd.h>
#include <cstdint>
#include <fstream>
#include <numeric>