"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cifsiostat.c" between
sysstat-12.4.0.tar.xz and sysstat-12.4.1.tar.xz

About: sysstat is a collection of performance monitoring tools for Linux including amongst others sar (collects and reports system activity) and iostat (reports CPU statistics and I/O statistics for tty devices and disks). Stable version.

cifsiostat.c  (sysstat-12.4.0.tar.xz):cifsiostat.c  (sysstat-12.4.1.tar.xz)
skipping to change at line 452 skipping to change at line 452
void rw_io_stat_loop(long int count, struct tm *rectime) void rw_io_stat_loop(long int count, struct tm *rectime)
{ {
int curr = 1; int curr = 1;
/* Set a handler for SIGALRM */ /* Set a handler for SIGALRM */
memset(&alrm_act, 0, sizeof(alrm_act)); memset(&alrm_act, 0, sizeof(alrm_act));
alrm_act.sa_handler = alarm_handler; alrm_act.sa_handler = alarm_handler;
sigaction(SIGALRM, &alrm_act, NULL); sigaction(SIGALRM, &alrm_act, NULL);
alarm(interval); alarm(interval);
/* Don't buffer data if redirected to a pipe */
setbuf(stdout, NULL);
do { do {
/* Every device is potentially nonexistent */ /* Every device is potentially nonexistent */
set_cifs_nonexistent(cifs_list); set_cifs_nonexistent(cifs_list);
/* Read system uptime in 1/100th of a second */ /* Read system uptime in 1/100th of a second */
read_uptime(&(uptime_cs[curr])); read_uptime(&(uptime_cs[curr]));
/* Read CIFS stats */ /* Read CIFS stats */
read_cifs_stat(curr); read_cifs_stat(curr);
skipping to change at line 608 skipping to change at line 605
if (!interval) { if (!interval) {
count = 1; count = 1;
} }
/* How many processors on this machine? */ /* How many processors on this machine? */
cpu_nr = get_cpu_nr(~0, FALSE); cpu_nr = get_cpu_nr(~0, FALSE);
get_localtime(&rectime, 0); get_localtime(&rectime, 0);
/*
* Don't buffer data if redirected to a pipe.
* Note: With musl-c, the behavior of this function is undefined except
* when it is the first operation on the stream.
*/
setbuf(stdout, NULL);
/* Get system name, release number and hostname */ /* Get system name, release number and hostname */
__uname(&header); __uname(&header);
if (print_gal_header(&rectime, header.sysname, header.release, if (print_gal_header(&rectime, header.sysname, header.release,
header.nodename, header.machine, cpu_nr, header.nodename, header.machine, cpu_nr,
PLAIN_OUTPUT)) { PLAIN_OUTPUT)) {
flags |= I_D_ISO; flags |= I_D_ISO;
} }
printf("\n"); printf("\n");
/* Main loop */ /* Main loop */
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)