13 lines
452 B
C
13 lines
452 B
C
#include <unistd.h>
|
|
#include "readUtil.h"
|
|
#include "printUtil.h"
|
|
#include <math.h>
|
|
|
|
void get_cpu_usage(int cpu_cores, char buf[PANE_BUF], int *cpu_utils, int i,
|
|
int tdelay);
|
|
///_|> descry: return total cpu usage over a period
|
|
///_|> cpu_cores: number of cpu cores to consider in calculations
|
|
///_|> buf: buffer to write pane to
|
|
///_|> cpu_utils: data array
|
|
///_|> i: current datapoint in data array
|
|
///_|> returning: void
|