rendered paste bodyIndex: main.cpp===================================================================--- main.cpp (revision 115)+++ main.cpp (working copy)@@ -61,6 +61,7 @@ int fMinimizeToTray = true; int fMinimizeOnClose = true; +double gblHashPerSec = 0.0; @@ -2771,6 +2772,8 @@ double dHashesPerSec = 1000.0 * (nMask+1) * nHashCounter / (GetTimeMillis() - nTimerStart); nTimerStart = GetTimeMillis(); nHashCounter = 0;++ gblHashPerSec = dHashesPerSec; string strStatus = strprintf(" %.0f khash/s", dHashesPerSec/1000.0); UIThreadCall(bind(CalledSetStatusBar, strStatus, 0)); static int64 nLogTime;Index: rpc.cpp===================================================================--- rpc.cpp (revision 115)+++ rpc.cpp (working copy)@@ -222,6 +222,7 @@ obj.push_back(Pair("generate", (bool)fGenerateBitcoins)); obj.push_back(Pair("genproclimit", (int)(fLimitProcessors ? nLimitProcessors : -1))); obj.push_back(Pair("difficulty", (double)GetDifficulty()));+ obj.push_back(Pair("khash", (double)gblHashPerSec/1000.0)); return obj; } Index: main.h===================================================================--- main.h (revision 115)+++ main.h (working copy)@@ -51,6 +51,7 @@ extern int fMinimizeToTray; extern int fMinimizeOnClose; +extern double gblHashPerSec;