fix get_seq on non-windows twisty
authorMark Hammond <mhammond@skippinet.com.au>
Mon, 30 Mar 2009 13:29:50 +1100
branchtwisty
changeset 143 518d0a4f53d96363ad3b91b4234749bf895c8ff9
parent 142 904171c40909c7f8840bedd98e6154f4babee78d
child 144 ac76e13ab690e677ac23953cb97cbe8d47ab2fee
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
fix get_seq on non-windows
server/python/junius/model.py
--- a/server/python/junius/model.py
+++ b/server/python/junius/model.py
@@ -31,17 +31,17 @@ DBs = {}
 # now we use a timestamp, but that obviously sucks in many scenarios.
 if sys.platform=='win32':
     # woeful resolution on windows and equal timestamps are bad.
     clock_start = time.time()
     time.clock() # time.clock starts counting from zero the first time its called.
     def get_seq():
         return clock_start + time.clock()
 else:
-    get_seq = time.time()
+    get_seq = time.time
 
 
 def _raw_to_rows(raw):
     # {'rows': [], 'total_rows': 0} -> the actual rows.
     ret = raw['rows']
     # hrmph - on a view with start_key etc params, total_rows will be
     # greater than the rows.
     assert 'total_rows' not in raw or len(ret)<=raw['total_rows'], raw