From f87f6d92df32eed5bdb8655d0b8f7b1ec0542890 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 30 Oct 2018 22:05:26 +0000 Subject: [PATCH] Netstat: fix speed indicators git-svn-id: svn://kolibrios.org@7513 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/netstat/netstat.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/network/netstat/netstat.asm b/programs/network/netstat/netstat.asm index cb706502cb..6092a53578 100644 --- a/programs/network/netstat/netstat.asm +++ b/programs/network/netstat/netstat.asm @@ -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