From d17909c82b03ad0427a285c66766421751546c42 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 10 Aug 2019 23:11:21 -0500 Subject: Benchmark: fixes, user_note, verifiable test data * fix zlib display order * fix cryptohash MiB/s calculation * revision and params for other benchmarks * allow attaching user note to bench result with -u * don't inlcude the new result value bits if they are empty/invalid in bench_value_to_str(). bench_value_from_str() doesn't need to be modified. * bench_results: clean old result cpu name for x86 * use problem_marker() from dmi_memory to mark old version bench results * benchmark: verifiable test data size and content - The test data benchmark.data is stored in a file that could be edited to change the size or content. /* to guarantee size */ gchar *get_test_data(gsize min_size); /* to checksum content */ char *md5_digest_str(const char *data, unsigned int len); Signed-off-by: Burt P --- modules/devices/dmi_memory.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'modules/devices/dmi_memory.c') diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c index 8e9e25c3..753c4c74 100644 --- a/modules/devices/dmi_memory.c +++ b/modules/devices/dmi_memory.c @@ -53,15 +53,6 @@ static const char empty_icon[] = "module.png"; #define UNKIFEMPTY2(f) ((*f) ? f : _("(Unknown)")) #define STR_IGNORE(str, ignore) if (SEQ(str, ignore)) { *str = 0; null_if_empty(&str); } -const char *problem_marker() { - static const char as_markup[] = "\u26A0"; - static const char as_text[] = "(!)"; - if (params.markup_ok) - return as_markup; - else - return as_text; -} - dmi_mem_size dmi_read_memory_str_to_MiB(const char *memstr) { dmi_mem_size ret = 0, v = 0; char l[7] = ""; -- cgit v1.2.3