]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't do anything if time between updates is less than one tick.
authorBen Gras <ben@minix3.org>
Tue, 28 Mar 2006 23:44:10 +0000 (23:44 +0000)
committerBen Gras <ben@minix3.org>
Tue, 28 Mar 2006 23:44:10 +0000 (23:44 +0000)
commands/simple/top.c

index 267570ff054e1307b65fc274673c9b573b403677..d2d1eeab96b4ce26f02abd448e26d250f43b7b8d 100644 (file)
@@ -118,6 +118,8 @@ void print_procs(int maxlines,
        int p, nprocs, tot=0;
        int idleticks = 0, kernelticks = 0, systemticks = 0;
 
+       if(dt < 1) return;
+
        for(p = nprocs = 0; p < PROCS; p++) {
                if(proc2[p].p_rts_flags & SLOT_FREE)
                        continue;