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.
This commit is contained in:
Hisham Muhammad 2014-06-04 16:45:55 -03:00
parent 8a1c304bed
commit eb196f8ba4
1 changed files with 2 additions and 0 deletions

2
htop.c
View File

@ -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);