From eb196f8ba490536dc0bd26a3f316014af1823be3 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 4 Jun 2014 16:45:55 -0300 Subject: [PATCH] Get two data points for meters. Ensure one mini-reading-cycle runs before getting the UI active so we have two data points to get better meter measurements from the get-go. --- htop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htop.c b/htop.c index ab350a85..aee07c08 100644 --- a/htop.c +++ b/htop.c @@ -507,8 +507,10 @@ int main(int argc, char** argv) { IncSet* inc = IncSet_new(defaultBar); + ProcessList_scan(pl); millisleep(75); + ProcessList_scan(pl); FunctionBar_draw(defaultBar, NULL);