Author

Topic: luke-jr poclbm mod patched to display 3 digits of percentages. (Read 1080 times)

member
Activity: 295
Merit: 98
Quote

Are you doing a manual line by line patch or is there an easier way? I want to merge luke's jr with fpgaminer's update

It's a standard diff of two source files as most any coder would be familiar with. I'd post this directly to luke-jr and fpgaminer, but I'm still in the newbie restriction for posting.
member
Activity: 295
Merit: 98
Most of us have pretty low reject rates, less than %1.

I patched luke-jrs-poclbm mod to display three digits of precision on it's reject rate and Efficiency rate.

The updated display looks as follows...
Code:
[403.596 MH/s (~311 MH/s)] [Rej: 0/21 (0.000%)] [GW: 45 (Eff: 46.667%)]

The patch is pretty trival...

diff of BitcoinMiner.pl
Code:
149,150c149,150
<                       eff = self.shareCount[1] * 100 / self.getworkCount
<               self.say('[%.03f MH/s (~%d MH/s)] [Rej: %d/%d (%d%%)] [GW: %d (Eff: %d%%)]', (rate, round(estRate), self.shareCount[0], totShares, self.shareCount[0] * 100 / totSharesE, self.getworkCount, eff))
---
>                       eff = float(self.shareCount[1]) * 100 / float(self.getworkCount)
>               self.say('[%.03f MH/s (~%d MH/s)] [Rej: %d/%d (%0.03f%%)] [GW: %d (Eff: %0.03f%%)]', (rate, round(estRate), self.shareCount[0], totShares, float(self.shareCount[0]) * 100 / float(totSharesE), self.getworkCount, eff))

Jump to: