Bitcoin Forum
May 07, 2024, 05:26:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: luke-jr poclbm mod patched to display 3 digits of percentages.  (Read 1069 times)
Detritus (OP)
Member
**
Offline Offline

Activity: 295
Merit: 98



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

1715102798
Hero Member
*
Offline Offline

Posts: 1715102798

View Profile Personal Message (Offline)

Ignore
1715102798
Reply with quote  #2

1715102798
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715102798
Hero Member
*
Offline Offline

Posts: 1715102798

View Profile Personal Message (Offline)

Ignore
1715102798
Reply with quote  #2

1715102798
Report to moderator
1715102798
Hero Member
*
Offline Offline

Posts: 1715102798

View Profile Personal Message (Offline)

Ignore
1715102798
Reply with quote  #2

1715102798
Report to moderator
Detritus (OP)
Member
**
Offline Offline

Activity: 295
Merit: 98



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!