Number of clock ticks per second is given as a long integer by sysconf()
function. It is also saved as an unsigned long integer in sar's data
files (sa_hz).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
char units[] = {'s', 'B', 'k', 'M', 'G', 'T', 'P', '?'};
/* Number of ticks per second */
-unsigned int hz;
+unsigned long hz;
/* Number of bit shifts to convert pages to kB */
unsigned int kb_shift;
perror("sysconf");
}
- hz = (unsigned int) ticks;
+ hz = (unsigned long) ticks;
}
/*
/* Number of ticks per second */
#define HZ hz
-extern unsigned int hz;
+extern unsigned long hz;
/* Number of bit shifts to convert pages to kB */
extern unsigned int kb_shift;