htop icon indicating copy to clipboard operation
htop copied to clipboard

htop orange pi

Open renewedbullet opened this issue 1 year ago • 7 comments

Does htop 3.X not include kernel and OS version and amount of users logged in like 2.2 did?

image

renewedbullet avatar Jan 08 '24 19:01 renewedbullet

similiar to this, image

renewedbullet avatar Jan 08 '24 19:01 renewedbullet

There's a Meter for the System in 3.3, which can be seen in this screenshot: image

The number of logged in users is not currently available as a meter in standard htop; this is a modification of some derivative versions; if you can look for those changes and point them here, we might be able to integrate them.

BenBE avatar Jan 09 '24 07:01 BenBE

I apologize for being dumb, is this the files in which your looking for? Downloads.zip

renewedbullet avatar Jan 09 '24 12:01 renewedbullet

OS_Meter.c OS_meter.h kernel_Meter.c Kernel_meter.h

renewedbullet avatar Jan 09 '24 12:01 renewedbullet

Yes, do you have a repository you can point to for these files?

I noticed they might likely be from: https://github.com/avafinger/htop_2.2.2/

Given there's some history with that fork of htop, I'm quite reluctant to import patches from there directly (also that fork is based on old htop 2.2). That being said, all the mentioned meters are easy enough to re-implement from scratch.

BenBE avatar Jan 09 '24 13:01 BenBE

Yes it is, i wasn't aware of any conflicts I apologize just native htop i installed was missing those figured it would be a nice QoL upgrade then I saw them on 2.2 was curious why an older version had it. If its to much no worries.

renewedbullet avatar Jan 09 '24 13:01 renewedbullet

Writing those meters is not too difficult. For the OS/Kernel/Distro meters we already have the code to gather the information, so that's basically some boilerplate to implement.

For the logged-in user count the function to get that information is not to difficult either; it's just a matter of implementing it in the platform layer, as that meter is relevant for more than just Linux.

BenBE avatar Jan 09 '24 14:01 BenBE