summaryrefslogtreecommitdiff
path: root/src/RequestSlot.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-10 01:17:28 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-10 01:17:28 +0900
commite8e3a6f259ab74c486aec9b5ea95d3e1f5068f6c (patch)
tree81530df222473d79cf39e007729b0d882441ebfb /src/RequestSlot.h
parent97f34ab6682d83d9a0265a4291b44eaf45703493 (diff)
wallclock is now retrieved using global::wallclock() call.
This is necessary to avoid global variable initialization order problem.
Diffstat (limited to 'src/RequestSlot.h')
-rw-r--r--src/RequestSlot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RequestSlot.h b/src/RequestSlot.h
index b8d219dd..1ce43fbe 100644
--- a/src/RequestSlot.h
+++ b/src/RequestSlot.h
@@ -71,7 +71,7 @@ public:
RequestSlot(size_t index, uint32_t begin, size_t length, size_t blockIndex,
const SharedHandle<Piece>& piece = SharedHandle<Piece>()):
- dispatchedTime_(global::wallclock),
+ dispatchedTime_(global::wallclock()),
index_(index), begin_(begin), length_(length), blockIndex_(blockIndex),
piece_(piece) {}