mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 21:32:52 +01:00
parent
5e551ce125
commit
a7cf473643
@ -26,6 +26,10 @@ export class HashSuffixPipe implements PipeTransform {
|
||||
const scaledValue = value / Math.pow(1000, power);
|
||||
const suffix = suffixes[power];
|
||||
|
||||
if (scaledValue < 10) {
|
||||
return scaledValue.toFixed(2) + suffix;
|
||||
}
|
||||
|
||||
return scaledValue.toFixed(1) + suffix;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user