Bitcoin Forum
December 05, 2016, 04:37:45 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: luke-jr poclbm mod patched to display 3 digits of percentages.  (Read 831 times)
Detritus
Member
**
Offline Offline

Activity: 100



View Profile
June 23, 2011, 04:41:46 AM
 #1

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))

1480912665
Hero Member
*
Offline Offline

Posts: 1480912665

View Profile Personal Message (Offline)

Ignore
1480912665
Reply with quote  #2

1480912665
Report to moderator
1480912665
Hero Member
*
Offline Offline

Posts: 1480912665

View Profile Personal Message (Offline)

Ignore
1480912665
Reply with quote  #2

1480912665
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480912665
Hero Member
*
Offline Offline

Posts: 1480912665

View Profile Personal Message (Offline)

Ignore
1480912665
Reply with quote  #2

1480912665
Report to moderator
1480912665
Hero Member
*
Offline Offline

Posts: 1480912665

View Profile Personal Message (Offline)

Ignore
1480912665
Reply with quote  #2

1480912665
Report to moderator
1480912665
Hero Member
*
Offline Offline

Posts: 1480912665

View Profile Personal Message (Offline)

Ignore
1480912665
Reply with quote  #2

1480912665
Report to moderator
Detritus
Member
**
Offline Offline

Activity: 100



View Profile
June 23, 2011, 05:35:35 AM
 #2


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.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!