Kinfocenter currently only calculates a value for Linux, behind a Q_OS_LINUX.
Extend this with a Q_OS_FREEBSD. The same code would probably also work on the other BSD-flavours.
Details
Details
- Reviewers
rakuco sebas - Commits
- R102:eb3070be921a: Display System Memory on FreeBSD too
Diff Detail
Diff Detail
- Repository
- R102 KInfoCenter
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
How about using the same calls present in Modules/memory/memory_fbsd.cpp (basically read the contents of the hw.physmem sysctl)?
Comment Actions
As rakuco suggested, use the same method as in memory_fbsd.cpp to read this value via hw.physmem.