handle large values for process time

This commit is contained in:
Hisham Muhammad
2011-03-28 19:06:06 +00:00
parent 391eab2866
commit 219bb9ccff
4 changed files with 12 additions and 11 deletions

3
htop.c
View File

@ -427,8 +427,9 @@ int main(int argc, char** argv) {
refreshTimeout--;
if (prev == ch && !recalculate) {
closeTimeout++;
if (closeTimeout == 10)
if (closeTimeout == 100) {
break;
}
} else
closeTimeout = 0;
continue;