aboutsummaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2017-11-29x86 CPU flags fix; show socket:core and thread in proc listBurt P
* Bug fix: Some flags are just an index, for example power management might have "[13] [14]" as flags. This looks like a new section to hardinfo shell and it truncates the CPU information there. * Show the Socket:Core and thread in the processor list, for x86 only right now. In the future, the idea is to show only one line for each core, and list the threads on that core, where currently, there is one line for each thread. Signed-off-by: Burt P <pburt0@gmail.com>
2017-11-02Computer/Display: Add X Display NameBurt P
A field exists in struct _DisplayInfo, but it wasn't being filled or shown. Perhaps fix: https://github.com/lpereira/hardinfo/issues/181 Signed-off-by: Burt P <pburt0@gmail.com>
2017-10-29Fixed possible memory leak (#201)Roman Kalashnikov
Warnings, found using PVS-Studio: hardinfo/modules/devices/usb.c 397 err V773 The function was exited without releasing the 'temp' pointer. A memory leak is possible. hardinfo/modules/computer/uptime.c 33 err V773 The function was exited without releasing the 'ui' pointer. A memory leak is possible.
2017-09-10Fix compilation warning when benchmarkingTotalCaesar659
2017-09-04Build fix after 8913af3eLeandro Pereira
Fixes #188.
2017-09-03bench results: Show unknown instead of 0 kB for old resultsBurt P
Other minor tweaks. Signed-off-by: Burt P <pburt0@gmail.com>
2017-09-03Conditionally compile PowerPC and ARM code while summarizing DTLeandro Pereira
Also, use properly-named variables and plug a memory leak.
2017-09-03Clean up device tree codeLeandro Pereira
- No need for a global dtr variable: just pass it around as parameters - Internal functions marked static
2017-08-28ARM: Add some mediatek SOCsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Show motherboard version again after DMI refactoringLeandro Pereira
2017-08-27Fix 802.11 signal to bar conversionLeandro Pereira
Just steal the code from GNOME shell: https://github.com/GNOME/gnome-shell/blob/9cc143aaee8aa7c33d7815f744f8dc9e958bddf8/js/ui/status/network.js#L89-L98
2017-08-27dmi: requested changesBurt P
Change requested by lpereira in https://github.com/lpereira/hardinfo/pull/160 Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices/dmi: keys only need to be unique in the same groupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: allow specifying type for dmi_chassis_type_str()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Create dmi_util.c and move *_util.c to hardinfo/Burt P
These stand alone interfaces and are used across modules, so just make them available to any module by default. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: Add more string names, display more informationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: dmi_chassis_type_str() maps chassis-type to stringBurt P
dmi_chassis_type_str() is moved from code in computer.c:detect_machine_type(). It makes sense to keep it with dmi, as it maps a dmi-defined value to a string. This way it can be used in both dmi.c and computer.c. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: add dmi_sysfs_root() to find path for dmi in sysfsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices: tweak get_motherboard() to only use one translated stringBurt P
Also, simplify now that an empty DMI string is returned as null. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: empty result return NULL; don't suggest root if rootBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices: get_motherboard() fallbacks for board_name and board_vendorBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: dmi_get_str() add "system-manufacturer"Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices: use dmi_get_str() in get_motherboard()Burt P
Now that group names are translatable, this seems a better way. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: make labels translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: dmi_get_str() cleanup string before returningBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Use dmi_get_str() to get chassis type; start to detect SBCBurt P
Removes a FIXME. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: create single dmi_get_str() that uses sysfs with dmidecode fallbackBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-25Add another virtualbox test; make virt strings translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-25boots.c: capture stderr to prevent a leakBurt P
The only error would be inability to access /var/log/wtmp. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21samba.c: popen() leaks via stderrBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Translate unit labels in Devices/MemoryBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Make OpenGL Renderer Unknown translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Remove duplicate group headers in computer summaryBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Fix gambas environment detection for gambas X.Y.99 (git)PICCORO Lenz McKAY
fix detection for strings and also justify that when gambas are development version git or trunk svn build the versions beetween compiler and interpreter can differs,
2017-08-21Add ability to specify selected row, use it in benchmark resultsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: store int processors/cores/threadsBurt P
In the future, won't have to rely on a translated string. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Don't include benchmark result that was canceledBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Add OpenGL Renderer to benchmark result detailsBurt P
For the GPU Drawing benchmark at least, it should give some idea of the graphics capabilities of the machine. This is the only data hardinfo currently has about that. Maybe in the future, more advanced GPU information could be given. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: fix language translation issues for stored stringsBurt P
* cpu_config string is translated as loaded * if board or cpu_desc is missing, it is left null, stored empty, and translated to (Unknown) only when displayed. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: clean key in result listBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_result: changes suggested by LAFPBurt P
* hide bench/name and result * expand note for old results The old version is kept because it is useful for future development. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: fix cpu clock from id stringBurt P
Old versions of hardinfo used current frequency instead of max frequency. If the cpu id string had a clock rate in it, and it is significantly more than thre reported frequency in the benchmark result, use that. This feature exists in an earlier commit but it was broken. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Benchmark result detailsBurt P
* More information can be saved in benchmark.conf, while still being compatible with older versions. * Selecting a result give additional information about the result and the machine the produced it.
2017-08-15Use info_field_printf() in the computer moduleLeandro Pereira
2017-08-14dmi: fail if only never succeeded in dmi_get_info_sys()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Begin conversion of Computer module to use struct InfoLeandro Pereira
2017-08-14usb.c: tweaks and make strings translatableBurt P
Only tested __scan_usb_lsusb(). I can't test __scan_usb_procfs() or __scan_usb_sysfs() because those do not work on any machine I have access to. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making PCI devices information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string. Several more strings made translatable. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making input devices information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string. Some tweaks to the handling of vendor information and other cleanup. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making locale information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string, and the values cleaned of ampersands.