]> git.saurik.com Git - redis.git/blobdiff - src/redis-cli.c
Query the archive to provide a complete KEYS list.
[redis.git] / src / redis-cli.c
index 8d20d1cd502ebfd7c53793914a3a9a5477c9db8a..3969fbab58c004265dfa23a49aac9b4b9da784a7 100644 (file)
@@ -1,6 +1,6 @@
 /* Redis CLI (command line interface)
  *
- * 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
@@ -95,7 +95,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;
 }