Add the percent sign to *_perc functions

Units should be added to the corresponding numbers
This commit is contained in:
Aaron Marcher
2018-05-19 20:33:06 +02:00
parent 68a3902dc5
commit 74c4f4ebda
7 changed files with 12 additions and 12 deletions

View File

@ -60,7 +60,7 @@
sscanf(datastart + 1, " %*d %d %*d %*d\t\t %*d\t "
"%*d\t\t%*d\t\t %*d\t %*d\t\t %*d", &cur);
return bprintf("%d", (int)((float)cur / total * 100));
return bprintf("%d%%", (int)((float)cur / total * 100));
}
const char *
@ -147,7 +147,7 @@
q = nr.nr_rssi >= -50 ? 100 : (nr.nr_rssi <= -100 ? 0 :
(2 * (nr.nr_rssi + 100)));
}
return bprintf("%d", q);
return bprintf("%d%%", q);
}
return NULL;