aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-15 19:29:12 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-15 19:29:12 +0100
commitd21bd309d9fae7979550e09ba7b16526cd40977c (patch)
tree431ddc9986570e4197be4f91d96ca5eda7c23117 /bin
parent3349dc1f81a2928271dbef4d6caf53262bf7e87d (diff)
Made sure that the client has the idea of "now" fixed when called.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mauveclient4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mauveclient b/bin/mauveclient
index cfcc1c2..5fbf7dc 100755
--- a/bin/mauveclient
+++ b/bin/mauveclient
@@ -66,6 +66,8 @@ require 'mauve/proto'
require 'mauve/mauve_time'
require 'pp'
+NOW = Mauve::MauveTime.now
+
def error(msg)
STDERR.print "*** Error: #{msg}\n"
STDERR.print "*** For help, type: #{$0} -h\n"
@@ -73,7 +75,7 @@ def error(msg)
end
def parse_time_spec(spec = "now")
- now = Mauve::MauveTime.now
+ now = NOW
return now if spec == 'now'