Add integration with SR mining pool for Bitcoin Amsterdam '24
This commit is contained in:
parent
e8a9e253f7
commit
6dc3a2c3c8
4 changed files with 46 additions and 6 deletions
|
@ -9,7 +9,7 @@ std::array<std::string, NUM_SCREENS> parseBitaxeHashRate(std::string text)
|
|||
|
||||
// Calculate the position where the digits should start
|
||||
// Account for the position of the "mdi:pickaxe" and the "GH/S" label
|
||||
std::size_t startIndex = NUM_SCREENS - 1 - textLength;
|
||||
std::size_t startIndex = NUM_SCREENS - textLength;
|
||||
|
||||
// Insert the "mdi:pickaxe" icon just before the digits
|
||||
if (startIndex > 0)
|
||||
|
@ -23,7 +23,9 @@ std::array<std::string, NUM_SCREENS> parseBitaxeHashRate(std::string text)
|
|||
ret[startIndex + i] = text.substr(i, 1);
|
||||
}
|
||||
|
||||
ret[NUM_SCREENS - 1] = "GH/S";
|
||||
char lastChar = text[textLength - 1];
|
||||
|
||||
ret[NUM_SCREENS - 1] = std::string(1, lastChar) + "H/S";
|
||||
ret[0] = "BIT/AXE";
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue