From: Ben Gras Date: Tue, 28 Mar 2006 23:44:10 +0000 (+0000) Subject: Don't do anything if time between updates is less than one tick. X-Git-Tag: v3.1.2a~107 X-Git-Url: http://zhaoyanbai.com/repos/rndc.html?a=commitdiff_plain;h=fcbfcfcd078f742fa5ace6d7a99e0e78c043ac25;p=minix.git Don't do anything if time between updates is less than one tick. --- diff --git a/commands/simple/top.c b/commands/simple/top.c index 267570ff0..d2d1eeab9 100644 --- a/commands/simple/top.c +++ b/commands/simple/top.c @@ -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;