mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-14 21:44:41 +08:00
ss: fix expired time format of timer
When expired time of time-wait timer is less than or equal to 9 seconds, as shown below, result that below 1 sec is incorrect. Expect output should be show 9 seconds and 373 millisecond, but 9.373ms mean only 9 millisecond and 373 microseconds Before: TIME-WAIT 0 0 ... timer:(timewait,12sec,0) TIME-WAIT 0 0 ... timer:(timewait,11sec,0) TIME-WAIT 0 0 ... timer:(timewait,10sec,0) TIME-WAIT 0 0 ... timer:(timewait,9.373ms,0) TIME-WAIT 0 0 ... timer:(timewait,8.679ms,0) TIME-WAIT 0 0 ... timer:(timewait,1.574ms,0) TIME-WAIT 0 0 ... timer:(timewait,954ms,0) TIME-WAIT 0 0 ... timer:(timewait,303ms,0) After: TIME-WAIT 0 0 ... timer:(timewait,13sec,0) TIME-WAIT 0 0 ... timer:(timewait,12sec,0) TIME-WAIT 0 0 ... timer:(timewait,10sec,0) TIME-WAIT 0 0 ... timer:(timewait,9.501sec,0) TIME-WAIT 0 0 ... timer:(timewait,8.990sec,0) TIME-WAIT 0 0 ... timer:(timewait,7.865sec,0) TIME-WAIT 0 0 ... timer:(timewait,1.098sec,0) TIME-WAIT 0 0 ... timer:(timewait,476ms,0) Signed-off-by: xixiliguo <xixiliguo@foxmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
554ea3649d
commit
3e807112fd
Loading…
Reference in New Issue
Block a user