From fcbfcfcd078f742fa5ace6d7a99e0e78c043ac25 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 28 Mar 2006 23:44:10 +0000 Subject: [PATCH] Don't do anything if time between updates is less than one tick. --- commands/simple/top.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.44.0