mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-05 23:12:08 +08:00
Fix: correct units for speedtest tracker API v2 (#4950)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -36,14 +36,14 @@ export default function Component({ service }) {
|
|||||||
<Block
|
<Block
|
||||||
label="speedtest.download"
|
label="speedtest.download"
|
||||||
value={t("common.bitrate", {
|
value={t("common.bitrate", {
|
||||||
value: speedtestData.data.download * 1000 * 1000,
|
value: widget.version === 2 ? speedtestData.data.download * 8 : speedtestData.data.download * 1000 * 1000,
|
||||||
decimals: bitratePrecision,
|
decimals: bitratePrecision,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
<Block
|
<Block
|
||||||
label="speedtest.upload"
|
label="speedtest.upload"
|
||||||
value={t("common.bitrate", {
|
value={t("common.bitrate", {
|
||||||
value: speedtestData.data.upload * 1000 * 1000,
|
value: widget.version === 2 ? speedtestData.data.upload * 8 : speedtestData.data.upload * 1000 * 1000,
|
||||||
decimals: bitratePrecision,
|
decimals: bitratePrecision,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user