]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Event: Fix typo
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 14 Jan 2015 15:17:23 +0000 (23:17 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Thu, 15 Jan 2015 19:07:13 +0000 (03:07 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/Event.cc

index 2cb9c1daf0fff2ed00b7d0357b85cebe06ee0b34..99a90c50237dd14904447a50740ad42a64358e71 100644 (file)
@@ -315,7 +315,7 @@ int EventCenter::process_events(int timeout_microseconds)
       shortest = it->first;
       trigger_time = true;
       if (shortest > now) {
-        period = now - shortest;
+        period = shortest - now;
         period.copy_to_timeval(&tv);
       } else {
         tv.tv_sec = 0;