]> git.saurik.com Git - redis.git/blobdiff - src/redis-benchmark.c
Query the archive to provide a complete KEYS list.
[redis.git] / src / redis-benchmark.c
index d95bfd8ea817f1452aac8a731bcd332fe9ceb813..ceab707238556050c2edc112719c21911bd08f1c 100644 (file)
@@ -1,6 +1,6 @@
 /* Redis benchmark utility.
  *
- * Copyright (c) 2009-2010, Salvatore Sanfilippo <antirez at gmail dot com>
+ * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -106,7 +106,7 @@ static long long mstime(void) {
     long long mst;
 
     gettimeofday(&tv, NULL);
-    mst = ((long)tv.tv_sec)*1000;
+    mst = ((long long)tv.tv_sec)*1000;
     mst += tv.tv_usec/1000;
     return mst;
 }