fix: hardcode BadgeView font size (#5168)

This commit is contained in:
Cœur
2023-03-08 11:16:06 +08:00
committed by GitHub
parent 20071149c3
commit 60ef92ee99
2 changed files with 11 additions and 16 deletions

View File

@@ -175,9 +175,16 @@
{
return [NSString localizedStringWithFormat:@"%.1f %@", speed, mb];
}
speed /= 1000.0;
if (speed < 99.995) // 1.00 GB/s to 99.99 GB/s
{
return [NSString localizedStringWithFormat:@"%.2f %@", speed, gb];
}
else // insane speeds
{
return [NSString localizedStringWithFormat:@"%.2f %@", speed / 1000.0, gb];
return [NSString localizedStringWithFormat:@"%.1f %@", speed, gb];
}
}