projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[tools] gmp: update to 5.0.4
[openwrt.git]
/
package
/
iwinfo
/
src
/
iwinfo_cli.c
diff --git
a/package/iwinfo/src/iwinfo_cli.c
b/package/iwinfo/src/iwinfo_cli.c
index
0fdb21e
..
7ec5aef
100644
(file)
--- a/
package/iwinfo/src/iwinfo_cli.c
+++ b/
package/iwinfo/src/iwinfo_cli.c
@@
-134,7
+134,8
@@
static char * format_rate(int rate)
if (rate <= 0)
snprintf(buf, sizeof(buf), "unknown");
else
- snprintf(buf, sizeof(buf), "%.1f MBit/s", ((float)rate / 1000.0));
+ snprintf(buf, sizeof(buf), "%d.%d MBit/s",
+ rate / 1000, (rate % 1000) / 100);
return buf;
}
This page took
0.023675 seconds
and
4
git commands to generate.