Skip to content

Commit

Permalink
Fix round function showing M instead of K for thousand
Browse files Browse the repository at this point in the history
  • Loading branch information
CatotheCat11 committed Jan 4, 2025
1 parent a0e11d1 commit 55d727c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/cato/glasssky/Timeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public static String round(String value) {
if (val >= 1000000) {
return String.format("%.1fM", val / 1000000.0);
} else if (val >= 1000) {
return String.format("%.1fM", val / 1000.0);
return String.format("%.1fK", val / 1000.0);
} else {
return value;
}
Expand Down

0 comments on commit 55d727c

Please sign in to comment.