"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tapestat.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.

tapestat.c  (sysstat-12.4.0.tar.xz):tapestat.c  (sysstat-12.4.1.tar.xz)
skipping to change at line 562 skipping to change at line 562
void rw_tape_stat_loop(long int count, struct tm *rectime) void rw_tape_stat_loop(long int count, struct tm *rectime)
{ {
struct tape_stats *tmp; struct tape_stats *tmp;
int skip = 0; int skip = 0;
/* Should we skip first report? */ /* Should we skip first report? */
if (DISPLAY_OMIT_SINCE_BOOT(flags) && interval > 0) { if (DISPLAY_OMIT_SINCE_BOOT(flags) && interval > 0) {
skip = 1; skip = 1;
} }
/* Don't buffer data if redirected to a pipe */
setbuf(stdout, NULL);
do { do {
if (tape_new_stats == NULL) { if (tape_new_stats == NULL) {
tape_gather_initial_stats(); tape_gather_initial_stats();
} else { } else {
tape_get_updated_stats(); tape_get_updated_stats();
} }
/* Get time */ /* Get time */
get_localtime(rectime, 0); get_localtime(rectime, 0);
skipping to change at line 706 skipping to change at line 703
} }
if (!interval) { if (!interval) {
count = 1; count = 1;
} }
tape_initialise(); tape_initialise();
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 |= T_D_ISO; flags |= T_D_ISO;
} }
printf("\n"); printf("\n");
/* Set a handler for SIGALRM */ /* Set a handler for SIGALRM */
 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)