mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
This commit is contained in:
@@ -230,7 +230,7 @@ export function flowTransfer(flow, unit = 'B') {
|
||||
let unitIndex = unitList.indexOf(unit);
|
||||
|
||||
return flow < 1024 || unitIndex === unitList.length - 1
|
||||
? { value: flow.toFixed(1), unit: unit }
|
||||
? { value: (Math.round(flow * 100) / 100).toString(), unit: unit }
|
||||
: flowTransfer(flow / 1024, unitList[++unitIndex]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user