Skip to content

Commit

Permalink
Improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
scificrypto committed Mar 24, 2019
1 parent 5e288bc commit 94d29ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4426,7 +4426,7 @@ void tekcoinMiner(CWallet *pwallet, bool fProofOfStake)
CheckWork(pblock.get(), *pwalletMain, reservekey);
SetThreadPriority(THREAD_PRIORITY_LOWEST);
}
Sleep(500);
Sleep(5000);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/ntp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ void ThreadNtpSamples(void* parg) {
// Make this thread recognisable as time synchronization thread
RenameThread("tekcoin-ntp-samples");

CMedianFilter<int64> vTimeOffsets(200,0);
CMedianFilter<int64> vTimeOffsets(21,0);

while (!fShutdown) {
if (strTrustedUpstream != "localhost") {
Expand Down
2 changes: 1 addition & 1 deletion src/qt/guiconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define GUICONSTANTS_H

/* Milliseconds between model updates */
static const int MODEL_UPDATE_DELAY = 500;
static const int MODEL_UPDATE_DELAY = 5000;

/* AskPassphraseDialog -- Maximum passphrase length */
static const int MAX_PASSPHRASE_SIZE = 1024;
Expand Down

0 comments on commit 94d29ee

Please sign in to comment.