Skip to content

Commit

Permalink
improved frequency change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0bi42 committed Jun 13, 2012
1 parent 0e294a9 commit b364722
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BTCMiner.java
Original file line number Diff line number Diff line change
Expand Up @@ -1498,8 +1498,12 @@ public void updateFreq() throws UsbException {
}

if (bestM != freqM) {
if (freqM > 0) {
msg("Change frequency from " + String.format("%.2f", (freqM + 1) * (freqM1)) + "MHz to " + String.format("%.2f", (bestM + 1) * (freqM1)) + "MHz");
} else {
msg("Set frequency to " + String.format("%.2f", (bestM + 1) * (freqM1)) + "MHz");
}
freqM = bestM;
msg("Set frequency to " + String.format("%.2f", (freqM + 1) * (freqM1)) + "MHz");
setFreq(freqM);
}

Expand Down

0 comments on commit b364722

Please sign in to comment.