paleofetch

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit de9a199bd7818c82c6456270385d1ed64c9767af
parent 30bf30dbd6ce26a12ebff98345b1f84f66b20ea0
Author: dwzg <dennis@wtzg.de>
Date:   Tue, 28 Apr 2020 21:46:26 +0200

Fix bug in frequency precision detection code

Diffstat:
Mpaleofetch.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paleofetch.c b/paleofetch.c @@ -387,7 +387,7 @@ cpufreq_fallback: freq = cpu_freq / 1000.0; // convert MHz to GHz and cast to double while (cpu_freq % 10 == 0) { --prec; - cpu_freq /= 1; + cpu_freq /= 10; } if (prec == 0) prec = 1; // we don't want zero decimal places