We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 319dbc5 commit 4661d61Copy full SHA for 4661d61
ui/statistics_button.js
@@ -119,7 +119,9 @@ shaka.ui.StatisticsButton = class extends shaka.ui.Element {
119
120
const parseBytesDownloaded = (name) => {
121
const bytes = parseInt(this.currentStats_[name], 10);
122
- if (bytes > 1e6) {
+ if (bytes > 2 * 1e9) {
123
+ return (bytes / 1e9).toFixed(2) + 'GB';
124
+ } else if (bytes > 1e6) {
125
return (bytes / 1e6).toFixed(2) + 'MB';
126
} else if (bytes > 1e3) {
127
return (bytes / 1e3).toFixed(2) + 'KB';
0 commit comments