--- 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