Htop: refresh frequency and ability to pause and resume?

Created on 16 Oct 2016  Â·  9Comments  Â·  Source: hishamhm/htop

title says it all, thanks.

feature request

Most helpful comment

Refresh frequency: see the -d option. (-d --delay=DELAY Set the delay between updates, in tenths of seconds)
For the pause, no. Not available at the moment.

All 9 comments

Refresh frequency: see the -d option. (-d --delay=DELAY Set the delay between updates, in tenths of seconds)
For the pause, no. Not available at the moment.

Archiving under the "feature request" label; thanks for the feedback!

top has had the ability to set the refresh rate while the program was running since forever. It’s stunning that still does not exist in htop …

I just looked into coding this up myself. And … holy shit, that language and UI library is horribly, cumbersomly verbose. How can anyone work with that? 90% is just boilerplate that could be abstracted away (assuming the language supports it).

I must assume it is mostly generated code, based on something nicer, which I can’t find in there.

No wonder this feature still isn’t built in. Even for an expert, it would take a day, just to code the basic functionality.

Sorry, I’m not gonna do it. The stuff I prefer to use, I could probably code up the entirety of htop in the same amount of time.

I just looked into coding this up myself. And … holy shit, that language and UI library is horribly, cumbersomly verbose. How can anyone work with that? 90% is just boilerplate that could be abstracted away (assuming the language supports it).

This is intensely rude and unproductive.

I'd like to second that it would be useful to set the refresh rate after the program has started running, or perhaps read defaults like this from an rc file.

Ability to pause/resume htop would be a nice feature while troubleshooting a busy server.

You can change the refresh rate for ever by editing the file ~/.config/htop/htoprc and changing the line delay=15 to whatever you like. Note, the value of 10 is 1 second. If the line delay=15 is not present, just add it to the end of the file.

@evandrocoan: Thanks! I changed it to 30 and now it's refresh rate matches top and it's not the most CPU-consuming task on the system anymore. :+1:

@hishamhm if this feature ever gets implemented, what status will you change it to?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaefer picture kaefer  Â·  4Comments

der-stefan picture der-stefan  Â·  5Comments

BenBE picture BenBE  Â·  5Comments

mmarzantowicz picture mmarzantowicz  Â·  3Comments

brendangregg picture brendangregg  Â·  8Comments