aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2010-07-19 01:18:46 +0000
committerGavin Andresen <gavinandresen@gmail.com>2010-07-19 01:18:46 +0000
commite96cd730d188dde8915061ad4f19dc716dd97097 (patch)
treee88552bdefe151b5571ac082917b2c2baf5ae47f /util.cpp
parent4110f33cded01bde5f01a6312248fa6fdd14cc76 (diff)
downloadbitcoin-e96cd730d188dde8915061ad4f19dc716dd97097.tar.xz
json-rpc password, minor UI tweaks, removed some outdated txt files
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.cpp b/util.cpp
index c374dc2d3b..c94ee0aaea 100644
--- a/util.cpp
+++ b/util.cpp
@@ -701,12 +701,13 @@ void AddTimeData(unsigned int ip, int64 nTime)
sort(vTimeOffsets.begin(), vTimeOffsets.end());
int64 nMedian = vTimeOffsets[vTimeOffsets.size()/2];
nTimeOffset = nMedian;
- if ((nMedian > 0 ? nMedian : -nMedian) > 5 * 60)
+ if ((nMedian > 0 ? nMedian : -nMedian) > 36 * 60 * 60)
{
// Only let other nodes change our clock so far before we
// go to the NTP servers
/// todo: Get time from NTP servers, then set a flag
/// to make sure it doesn't get changed again
+ nTimeOffset = 0;
}
foreach(int64 n, vTimeOffsets)
printf("%+"PRI64d" ", n);