diff options
| author | Burt P <pburt0@gmail.com> | 2017-08-14 05:49:34 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-21 05:47:00 -0700 | 
| commit | a702a6ca017925272ce87fc939c4489a0fe060ff (patch) | |
| tree | 429970def8b909aca1cda473b87b7ddd9fe8e3fe /modules/benchmark | |
| parent | 1b7de6515493a2fe9a05b0ec3f6184fcc52c8cbd (diff) | |
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 <pburt0@gmail.com>
Diffstat (limited to 'modules/benchmark')
| -rw-r--r-- | modules/benchmark/bench_results.c | 25 | 
1 files changed, 25 insertions, 0 deletions
| 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 @@ -273,6 +273,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"          /* threads */   "%s=%d\n" | 
