NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/59034: systat(1) inet.* data resets on refresh



The following reply was made to PR bin/59034; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/59034: systat(1) inet.* data resets on refresh
Date: Tue, 28 Jan 2025 07:19:59 -0000 (UTC)

 wcm%hecuba.sigwinch.xyz@localhost writes:
 
 >	Information incorrectly resets after refresh in the inet.*
 >	lower-window displays offered by the systat(1) program.
 >	For example, 'systat inet.tcp' shows correct information when
 >	it is first run, but all fields reset when the program refreshes:
 >	in my test run, "total TCP packets received" begins at 17873, then
 >	changes to 2 when systat refreshes. Other cumulative fields show
 >	the same behavior: counters reset on refresh, instead of ticking
 >	up.
 
 That's a feature.
 
 The standard display is 'time' to show the change rate. You can use the
 systat commands boot, run, time, zero to change the display.
 
 boot shows the cumulative statistics since boot (what you expect).
 run  shows the increment to values when systart started.
 time shows the change rate.
 zero resets the start value to the current counters.
 
 The initial values shown in the default 'time' mode are an artefact
 caused by starting from a zero reference value. On the other hand,
 there is no 'change rate' defined for the initial display. Starting
 with a 'change rate since boot' or just with zero is as wrong.
 
 Chosing the mode should be a command line option...
 


Home | Main Index | Thread Index | Old Index