Commit e7feee3
[noup] zephyr: Fix fractional part of Tx rate by converting to float
The Tx rate was divided by 1000 using integer division, which
truncated the decimal part (8600 bps → 8 Mbps instead of 8.6 Mbps).
This change ensures the result is stored as a float to retain
precision in Mbps.
Signed-off-by: Kapil Bhatt <[email protected]>1 parent 3fb1cea commit e7feee3
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8403 | 8403 | | |
8404 | 8404 | | |
8405 | 8405 | | |
8406 | | - | |
| 8406 | + | |
8407 | 8407 | | |
8408 | | - | |
| 8408 | + | |
8409 | 8409 | | |
8410 | 8410 | | |
8411 | 8411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments