Rizin
unix-like reverse engineering framework and cli tools
sysinfo-loadavg.c File Reference
#include "uv.h"
#include "internal.h"
#include <stdint.h>
#include <sys/sysinfo.h>

Go to the source code of this file.

Functions

void uv_loadavg (double avg[3])
 

Function Documentation

◆ uv_loadavg()

void uv_loadavg ( double  avg[3])

Definition at line 28 of file sysinfo-loadavg.c.

28  {
29  struct sysinfo info;
30 
31  if (sysinfo(&info) < 0) return;
32 
33  avg[0] = (double) info.loads[0] / 65536.0;
34  avg[1] = (double) info.loads[1] / 65536.0;
35  avg[2] = (double) info.loads[2] / 65536.0;
36 }
RzBinInfo * info(RzBinFile *bf)
Definition: bin_ne.c:86
static const char struct stat static buf struct stat static buf static vhangup int struct rusage static rusage sysinfo
Definition: sflib.h:147

References info(), and sysinfo.