Browse Source

neth: show mining speed

cl-refactor
Vincent Gariepy 11 years ago
parent
commit
fcb5b82e5f
  1. 5
      neth/main.cpp

5
neth/main.cpp

@ -951,7 +951,12 @@ int main(int argc, char** argv)
// Mining flag
if (c.isMining())
{
mvwprintw(consolewin, qheight - 1, width / 4 - 11, "Mining ON");
eth::MineProgress p = c.miningProgress();
auto speed = boost::format("%2% kH/s @ %1%s") % (p.ms / 1000) % (p.ms ? p.hashes / p.ms : 0);
mvwprintw(consolewin, qheight - 2, width / 4 - speed.str().length() - 2, speed.str().c_str());
}
else
mvwprintw(consolewin, qheight - 1, width / 4 - 12, "Mining OFF");

Loading…
Cancel
Save