commit c18da5310e8e6c81c14b7d273cf6d6656f4df272
parent 3dbc153b6db187d567abeac218fb5db66ad26b8b
Author: sam-barr <samfbarr@outlook.com>
Date: Thu, 23 Apr 2020 10:48:26 -0500
Fixed spacing, less decimal places
The decimal places might be a matter of taste admittedly
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/paleofetch.c b/paleofetch.c
@@ -367,12 +367,12 @@ char *get_cpu() {
remove_substring(cpu_model, "(TM)", 4);
remove_substring(cpu_model, "Core", 4);
remove_substring(cpu_model, "CPU", 3);
- truncate_spaces(cpu_model);
char *cpu = malloc(BUF_SIZE);
- snprintf(cpu, BUF_SIZE, "%s (%d) @ %.3fGHz", cpu_model, num_cores, freq);
+ snprintf(cpu, BUF_SIZE, "%s (%d) @ %.1fGHz", cpu_model, num_cores, freq);
free(cpu_model);
+ truncate_spaces(cpu);
return cpu;
}