[v0.05] Fix custom trunc function. Replace # by M in nvidia logo

This commit is contained in:
Dr-Noob
2021-08-16 18:28:29 +02:00
parent 617228ce17
commit f989b435b2
2 changed files with 16 additions and 16 deletions

View File

@@ -35,7 +35,7 @@ VENDOR get_gpu_vendor(struct gpu_info* gpu) {
double trunc(double val) {
int digits = floor (log10 (abs (val))) + 1;
int decimals = 4 - digits;
return val - (5 * pow(10, -(decimals + 1)));
return val - (4 * pow(10, -(decimals + 1)));
}
int32_t get_value_as_smallest_unit(char ** str, uint64_t value) {