aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/util.c
AgeCommit message (Collapse)Author
2018-02-27Add cli param to format result for -bBurt P
For running benchmarks from the command line, add a new param to specify the output format: -g "conf" gives a line suitable for benchmark.conf -g "shell" gives the complete "moreinfo" shell data -g "short" (or nothing) gives the bench_value string as before Signed-off-by: Burt P <pburt0@gmail.com>
2017-09-06Fix compilation warningTotalCaesar659
2017-08-14Move hardinfo_clean_label() and hardinfo_clean_value() to util.cBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04Remove tree_view_save_image()/cb_save_graphic() -related.Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30GTK3 updatesBurt P
* Use gtk_widget_get_window() instead of ->window cmake: * add option to build against gtk3 `-DHARDINFO_GTK3=1` * combine hardinfo-shell static library and hardinfo * disable guibench for gtk3 hardinfo/util.c: * widget_set_cursor() gtk3 changes * For now, the whole function tree_view_save_image() is disabled for gtk3. shell/shell.c: * add gtk_notebook_set_page() compatibility macro if not defined * shell_summary_add_item() fixes * Disable RANGE_GET_VALUE() RANGE_SET_VALUE() macros for GTK3. This is a nigtmare onion to try and peel. shell/callbacks.c: * gtk_about_dialog_set_name() -> gtk_about_dialog_set_program_name() after GTK+2.12. shell/loadgraph.c: * builds, but not yet functioning under gtk3 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19filesystem: make strings translatableBurt P
Plus a couple other minor tweaks. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19All module entries must have name != NULLBurt P
Hack a way to skip unavailable entries. Now "Resources" is avaialbe outside of x86 when it wasn't before. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Use const for gettext stringsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-19Make the strend function accessible.Simon Quigley
2017-06-05Fallback g_strv_contains() imp when using glib<2.44Burt P
Also, some stray whitespace removed. Signed-off-by: Burt P <pburt0@gmail.com>
2017-04-10Fixed compile warning in utils.cTotalCaesar659
Fixed compile warning in utils.c: [ 37%] Building C object CMakeFiles/hardinfo.dir/hardinfo/util.c.o /home/maxpayne/hardinfo/hardinfo/util.c: In function ‘seconds_to_string’: /home/maxpayne/hardinfo/hardinfo/util.c:105:34: warning: too many arguments for format [-Wformat-extra-args] return g_strdup_printf(ngettext("%d hour, ", "%d hours, ", hours), hours, ^ /home/maxpayne/hardinfo/hardinfo/util.c:108:37: warning: too many arguments for format [-Wformat-extra-args] return g_strdup_printf(ngettext("%d day, ", "%d days, ", days), days, ^ [ 39%] Linking C executable hardinfo
2016-12-31Use g_utf8_strchr() in strend()Leandro Pereira
2016-12-30Fix compile warnings in util.cLeandro Pereira
2016-07-30Reindent seconds_to_string()Leandro Pereira
2016-06-10util.c: introduced TiB and PiB for larger drivestheHacker
2015-10-25revert commit [d5afcb6851]; fix the real cause of missing RAM display (use ↵jamesbond
moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
2014-01-03Add initial translation support (patch from rodin.s)Julien Lavergne
2012-12-30fix return value of non-void functionhasufell
this breaks strict compilers
2012-01-26Better manage moreinfo hashesLeandro Pereira
Have only one for the whole program and use per-module namespaces/prefixes so that each module can clear its own information easily.
2012-01-15Remove more sightings of if (ptr) { free(ptr) }Leandro Pereira
2010-05-03Move files from hardinfo2 to root.Leandro A. F. Pereira