Skip to content

Commit 8bd0119

Browse files
Results screen now has a header and is aligned to the left
Also added the codename to the results table on the project readme
1 parent 34406eb commit 8bd0119

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ These are the systems I benchmarked so far (I plan to include more systems in th
7979
<td>Linux 5.0</td><!--OS Kernel-->
8080
<td>5</td><!--Hardware Level-->
8181
<td>A0</td><!--Version-->
82-
<td>1-Linux-64</td><!--Build-->
82+
<td>1-Linux-64 Absolution</td><!--Build-->
8383
<td></td><!--CLI Options-->
8484
</tr>
8585
<tr> <!--Intel Celeron 430-->
@@ -104,7 +104,7 @@ These are the systems I benchmarked so far (I plan to include more systems in th
104104
<td>Linux 4.9</td><!--OS Kernel-->
105105
<td>4</td><!--Hardware Level-->
106106
<td>A0</td><!--Version-->
107-
<td>1-Linux-64</td><!--Build-->
107+
<td>1-Linux-64 Absolution</td><!--Build-->
108108
<td>--hardware-level 4</td><!--CLI Options-->
109109
</tr>
110110
<tr> <!--Template-->

main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ MsgCode get_cli_options(int argc, char** argv, bool* show_gui, bool* st_test, bo
213213

214214
// shows the system score
215215
void show_score(float singlethread_score, float multithread_score, int threads, int hardware_level) {
216-
printf("%-20s: %20s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER), BUILD_CODENAME);
217-
printf("%-20s: %20s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_VERSION), BENCHMARK_VERSION);
218-
printf("%-20s: %20s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_BUILD), BUILD_VERSION);
219-
printf("%-20s: %20d\n", get_string(MSG_MAIN_SHOW_SCORE_HARDWARE_LEVEL), hardware_level);
220-
printf("%-20s: %20.2f\n", get_string(MSG_MAIN_SHOW_SCORE_SINGLETHREAD_SCORE), singlethread_score);
221-
printf("%-20s: %20.2f\n", get_string(MSG_MAIN_SHOW_SCORE_MULTITHREAD_SCORE), multithread_score);
222-
printf("%-20s: %20.2f\n", get_string(MSG_MAIN_SHOW_SCORE_MULTIPLIER), (singlethread_score > 0.0) ? multithread_score / singlethread_score : 0.0);
216+
printf("%-20s:\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER));
217+
printf("%-20s: %-40s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_VERSION), BENCHMARK_VERSION);
218+
printf("%-20s: %-40s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_BUILD), BUILD_VERSION" "BUILD_CODENAME);
219+
printf("%-20s: %-40d\n", get_string(MSG_MAIN_SHOW_SCORE_HARDWARE_LEVEL), hardware_level);
220+
printf("%-20s: %-40.2f\n", get_string(MSG_MAIN_SHOW_SCORE_SINGLETHREAD_SCORE), singlethread_score);
221+
printf("%-20s: %-40.2f\n", get_string(MSG_MAIN_SHOW_SCORE_MULTITHREAD_SCORE), multithread_score);
222+
printf("%-20s: %-40.2f\n", get_string(MSG_MAIN_SHOW_SCORE_MULTIPLIER), (singlethread_score > 0.0) ? multithread_score / singlethread_score : 0.0);
223223
}
224224

225225
// loads the test config

strings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ String get_string(MsgCode msgcode) {
2020
case GUI_MEMORY_ALLOCATION_ERROR: return "GUI memory allocation error!";
2121
case CHRONOMETER_MEMORY_ALLOCATION_ERROR: return "Chronometer memory allocation error!";
2222

23-
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER: return "SimpleBench";
23+
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER: return "SimpleBench Result";
2424
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_VERSION: return "Benchmark Version";
2525
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_BUILD: return "Program Build";
2626
case MSG_MAIN_SHOW_SCORE_HARDWARE_LEVEL: return "Hardware Level";

0 commit comments

Comments
 (0)