[ci:skip-build] # way too many packages changed [ci:skip-vercheck] # just moving Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6519
13 lines
657 B
Diff
13 lines
657 B
Diff
diff --git a/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c b/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c
|
|
index 9cbb21987..a5b51f9f4 100644
|
|
--- a/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c
|
|
+++ b/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c
|
|
@@ -262,7 +262,7 @@ static int get_speed_str(u64 speed, char buf[], int size)
|
|
rem = do_div(speed, 1000);
|
|
ret = snprintf(buf, size, "%llu.%03lluGbps", speed, rem);
|
|
} else if (speed >= 1000000LL) {
|
|
- speed = speed / 1000LL;
|
|
+ speed = do_div(speed, 1000LL);
|
|
rem = do_div(speed, 1000);
|
|
ret = snprintf(buf, size, "%llu.%03lluMbps", speed, rem);
|
|
} else if (speed >= 1000LL) {
|