summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-06-04 16:45:55 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-06-04 16:45:55 -0300
commiteb196f8ba490536dc0bd26a3f316014af1823be3 (patch)
tree2b28f4d3fac739796b371665df447139f40371c2 /htop.c
parent8a1c304bedae0d1693d44b1ec50c2c6aadc0e6c8 (diff)
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.
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 2 insertions, 0 deletions
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy