Age | Commit message (Collapse) | Author |
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Like 96980fbf494d9c453c6b558967c90c55e41abe2d, but the html version
of that function. Fixes https://github.com/lpereira/hardinfo/issues/217
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
The flags list is often more than 512 bytes long these days.
It was being truncated.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
cpu_insecure = page table isolation is being used to work
around a security vulnerability in Intel x86 CPUs.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Show actual physical caches by counting only unique
references from each "cpu" (hardware thread).
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
* 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>
|
|
|
|
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.
|
|
|
|
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
|
|
The string is constructed one word at a time, "About", X, "Module"
and it ends up being very strange in languages other than English.
Cutting out the module makes it a little better, and not much is
lost. A module could add "Module" to it's title, and then at
least that string can be translated as a complete unit.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
Fixes #188.
|
|
|
|
Other minor tweaks.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
GtkStock has been deprecated in GTK+ 3.0, so use strings that work
in both GTK+ 2 and GTK+ 3.
|
|
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>
|
|
|
|
Fix a crash when there is no DMI available.
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>
|