Skip to content

Commit

Permalink
Remove decimals from MHz frequencies as suggested in #91
Browse files Browse the repository at this point in the history
  • Loading branch information
Fin Christensen committed Apr 15, 2020
1 parent 095bf7b commit 946db2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ var CPUFreqIndicator = class CPUFreqIndicator extends baseindicator.CPUFreqBaseI
if(this.lblUnit)
return (this.cpufreq.toString() / 1000).toFixed(2) + 'GHz';
else
return this.cpufreq.toString() + 'MHz';
return Math.round(this.cpufreq.toString()) + 'MHz';
}

_onPreferencesActivate(item) {
Expand Down

0 comments on commit 946db2f

Please sign in to comment.