-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Conversation
libethcore/Miner.h
Outdated
@@ -81,6 +81,31 @@ inline std::ostream& operator<<(std::ostream& _out, WorkingProgress _p) | |||
return _out; | |||
} | |||
|
|||
struct FarmWorkingProgress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like splitting this single struct into two. Can we keep it as one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chfast You mean something like this : https://gist.github.com/evilny0/19f2172a7f45a3b00bfd00ec0e8290c2 ?
When will this be merged ? |
i can not see any colored output on that .. ? (Win 10 / DOS) |
I added colors, but colors are not supported on Windows version, so it only works on Linux. I could try to look at how to implement colors on Windows terminal (or powershell)... but I could only test on a VM, so no GPU to run the miner on ! |
that would work on windows: {
}` edit: if the DOS window is ANSI Format (Windows 10), |
I added colors for ANSI terminals on Windows. I tried to add it for non-ANSI terminals, and succeeded to some extent... when we write logs directly to the console. However, the vast majority of logs are first built, and written to the console later on. Which mean changing the color when the logs are built has no effect on the console output. Changing this probably means a major rework of the logs, and I'm not going to do that :). |
@evilny0 well that last try what you done with "Fixed missing static keyword." it generate bunch of "m" from time to time aka it mess thing :) noo colour change only a extra field line like total ... gpu0 value ... i test if under Windows 7 Service Pack 1 (6.1.7601) 64bit |
Yes, I noticed. I did a few tries on Linux with no problem before commit, but now I have issues. I'll fix it. |
About colors, as I said it's only if the terminal supports ANSI escape codes. On Windows, it basically means Windows 10 only. And it doesn't seem to be all versions, since on the VM I have, it's not supported... it works in Powershell (Win10) though. |
yup last build you done noo more bunch of "m", noo colour on win7 but i undestend reading previos comment no biggie, my sugestion if is possible to be add a total share counter like: |
I'm not sure I understand. It's already there. Shares are here : [A2+0:R0+0:F0], and total is on the next line. Example : m 00:36:25|ethminer Mining on #b04b76ab… [A2+0:R0+0:F0] |
my sugestion was to add a counter what to end like this: |
I'll split this PR to several. Colors for windows & hashrate per GPU should be in a different one. |
I added hashrate per card, and colors for accepted/refused shares. Only tested it on CUDA & Nicehash, so I hope I did not miss anything.