On Sat, Jan 10, 2026 at 2:34 AM Miroslav Lachman <[email protected]> wrote:

> If you are interested I have access to one old machine with working
> whowatch 1.4 so I can make a few screenshots with the old UI and send it
> to you privately. I think there are a few details which were nicer in
> the old version.

That'll be appreciated. I can open an issue in my repo and attach the image
for future reference.


> Do you think you will be able to make [d]etails also working on FreeBSD?
> [d]etails and [s]ysinfo is new to this version, they were not there in
> the version 1.4. But there was [c]md which turns On / Off showing long
> command line options of the running processes or process name only. So
> for shell scripts you see just "sh" or "/home/user/bin/myscript.sh -t -b
> my-arg"

[d]etails is working in FreeBSD-15.0 on the other hand it's not working in
linux, another issue to look at.
I've gotta start opening up issues to track them better.

[s]ysinfo is also progressing but the caveat here is linux exposes all the
details through /proc/* files,
and it has lots of information which is directly dumped by "whowatch" to
the sysinfo panel, But FreeBSD does not have any files like that, So I had
to manually find API's for equivalent information, and turns out Linux and
FreeBSD file system is implemented in different manner such that Linux has
much more informations such as buffers, slab etc which doesn't exist in
FreeBSD as far as I know correct me if I'm wrong, So I've only been able to
add the values which I can find the direct equivalent of and I don't think
we can get more far than that. Even the things I've added is a sort of
hacky if i can say but it works.
So far the values I've converted are
              │MEMORY:                                        │

              │MemTotal: 4158792 kB                           │

              │MemFree: 3914304 kB                            │

              │MemAvailable: 3917292 kB                       │

              │Active: 19804 kB                               │

              │Inactive: 2988 kB                              │

              │Cached: 0 kB                                   │

              │SwapTotal: 1048536 kB                          │

              │SwapUsed: 384868 kB                            │

              │SwapFree: 663668 kB                            │
whereas the equivalent in Linux is the whole /proc/meminfo.
So I'm just gonna leave it at that, For now the goal is to touch every
feature to assess what can work and what cannot, and later dive deep in the
feature for improvement.

as always if anyone wants to try it out the repo is in sync with my work
Repo: https://github.com/Zedai00/whowatch/tree/freebsd-utmpx-experiment
-- 
Best Regards,
Jishan Alam

Reply via email to