问题 I'm trying to get the CPU usage percent in c++ using the SIGAR libraries, i wrote the code below to try to get this information, but something is wrong, i always got a value 0.3... instead of a value between 0% to 100 %. How to get the CPU usage percent with the SIGAR libraries? #include <QDebug> #include <sigar.h> extern "C" { #include <sigar_format.h> } int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); sigar_cpu_t cpu1; sigar_cpu_t cpu2; sigar_cpu_perc_t perc; sigar_cpu