Netstat: fix speed indicators

git-svn-id: svn://kolibrios.org@7513 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2018-10-30 22:05:26 +00:00
parent 7d7d3e9e76
commit f87f6d92df

View File

@ -1,6 +1,6 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2010-2017. All rights reserved. ;;
;; Copyright (C) KolibriOS team 2010-2018. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; netstat.asm - Network Status Tool for KolibriOS ;;
@ -312,12 +312,14 @@ draw_stats:
push [time]
pop [delta_time]
mcall 26, 9
mcall 26, 9 ; TODO: use 26, 10 instead
mov [time], eax
sub eax, [delta_time]
jnz @f
inc eax ; Zero time units? Lets make it at least one.
@@:
lea eax, [eax + 4*eax]
shl eax, 1
mov [delta_time], eax
mov eax, [esp+4] ; bytes received