diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-10 01:17:28 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-10 01:17:28 +0900 |
| commit | e8e3a6f259ab74c486aec9b5ea95d3e1f5068f6c (patch) | |
| tree | 81530df222473d79cf39e007729b0d882441ebfb /src/PeerSessionResource.cc | |
| parent | 97f34ab6682d83d9a0265a4291b44eaf45703493 (diff) | |
wallclock is now retrieved using global::wallclock() call.
This is necessary to avoid global variable initialization order
problem.
Diffstat (limited to 'src/PeerSessionResource.cc')
| -rw-r--r-- | src/PeerSessionResource.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PeerSessionResource.cc b/src/PeerSessionResource.cc index f8141d33..790f1148 100644 --- a/src/PeerSessionResource.cc +++ b/src/PeerSessionResource.cc @@ -70,7 +70,7 @@ void PeerSessionResource::amChoking(bool b) { amChoking_ = b; if(!b) { - lastAmUnchoking_ = global::wallclock; + lastAmUnchoking_ = global::wallclock(); } } @@ -256,7 +256,7 @@ void PeerSessionResource::updateDownloadLength(size_t bytes) { peerStat_.updateDownloadLength(bytes); - lastDownloadUpdate_ = global::wallclock; + lastDownloadUpdate_ = global::wallclock(); } uint64_t PeerSessionResource::getCompletedLength() const |
