Age | Commit message (Collapse) | Author |
|
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>
|
|
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.
|
|
|
|
Fixes #188.
|
|
Other minor tweaks.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Also, use properly-named variables and plug a memory leak.
|
|
- No need for a global dtr variable: just pass it around as parameters
- Internal functions marked static
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Just steal the code from GNOME shell:
https://github.com/GNOME/gnome-shell/blob/9cc143aaee8aa7c33d7815f744f8dc9e958bddf8/js/ui/status/network.js#L89-L98
|
|
Change requested by lpereira in
https://github.com/lpereira/hardinfo/pull/160
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Also, simplify now that an empty DMI string is returned as null.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Now that group names are translatable, this seems a better
way.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Removes a FIXME.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
The only error would be inability to access /var/log/wtmp.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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,
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
In the future, won't have to rely on a translated string.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
* 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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* 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>
|
|
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>
|
|
* 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.
|
|
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
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>
|
|
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>
|
|
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>
|
|
Continuation of TotalCaesar659's work, but with the labels
broken out of the c-format string, and the values cleaned of
ampersands.
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|