"Fossies" - the Fresh Open Source Software Archive  

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

pidstat.c  (sysstat-12.4.0.tar.xz):pidstat.c  (sysstat-12.4.1.tar.xz)
skipping to change at line 2357 skipping to change at line 2357
* @rows Number of rows of screen. * @rows Number of rows of screen.
*************************************************************************** ***************************************************************************
*/ */
void rw_pidstat_loop(int dis_hdr, int rows) void rw_pidstat_loop(int dis_hdr, int rows)
{ {
int curr = 1, dis = 1; int curr = 1, dis = 1;
int again; int again;
unsigned long lines = rows; unsigned long lines = rows;
struct st_pid *plist; struct st_pid *plist;
/* Don't buffer data if redirected to a pipe */
setbuf(stdout, NULL);
/* Read system uptime */ /* Read system uptime */
read_uptime(&uptime_cs[0]); read_uptime(&uptime_cs[0]);
read_stats(0); read_stats(0);
if (DISPLAY_MEM(actflag)) { if (DISPLAY_MEM(actflag)) {
/* Get total memory */ /* Get total memory */
read_proc_meminfo(); read_proc_meminfo();
} }
if (!interval) { if (!interval) {
skipping to change at line 2804 skipping to change at line 2801
dis_hdr = 1; dis_hdr = 1;
} }
else { else {
rows = get_win_height(); rows = get_win_height();
} }
} }
/* Get time */ /* Get time */
get_localtime(&(ps_tstamp[0]), 0); get_localtime(&(ps_tstamp[0]), 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);
print_gal_header(&(ps_tstamp[0]), header.sysname, header.release, print_gal_header(&(ps_tstamp[0]), header.sysname, header.release,
header.nodename, header.machine, cpu_nr, header.nodename, header.machine, cpu_nr,
PLAIN_OUTPUT); PLAIN_OUTPUT);
/* Main loop */ /* Main loop */
rw_pidstat_loop(dis_hdr, rows); rw_pidstat_loop(dis_hdr, rows);
/* Free structures */ /* Free structures */
 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)