From a702a6ca017925272ce87fc939c4489a0fe060ff Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 14 Aug 2017 05:49:34 -0500 Subject: bench_result: changes suggested by LAFP * 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 --- modules/benchmark/bench_results.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'modules') diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c index 57cb56ea..12f35591 100644 --- a/modules/benchmark/bench_results.c +++ b/modules/benchmark/bench_results.c @@ -272,6 +272,31 @@ char *bench_result_benchmarkconf_line(bench_result *b) { } char *bench_result_more_info(bench_result *b) { + return g_strdup_printf("[%s]\n" + /* threads */ "%s=%d\n" + /* legacy */ "%s=%s\n" + "[%s]\n" + /* board */ "%s=%s\n" + /* cpu */ "%s=%s\n" + /* cpudesc */ "%s=%s\n" + /* cpucfg */ "%s=%s\n" + /* threads */ "%s=%d\n" + /* mem */ "%s=%d %s\n", + _("Benchmark Result"), + _("Threads"), b->threads, + b->legacy ? _("Note") : "#Note", + b->legacy ? _("This result is from an old version of HardInfo. Results might not be comparable to current version. Some details are missing.") : "", + _("Machine"), + _("Board"), b->machine->board, + _("CPU Name"), b->machine->cpu_name, + _("CPU Description"), b->machine->cpu_desc, + _("CPU Config"), b->machine->cpu_config, + _("Threads Available"), b->machine->threads, + _("Memory"), b->machine->memory_kiB, _("kiB") + ); +} + +char *bench_result_more_info_complete(bench_result *b) { return g_strdup_printf("[%s]\n" /* bench name */"%s=%s\n" /* result */ "%s=%0.2f\n" -- cgit v1.2.3