This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urlparse | |
import argparse | |
import redis | |
import sys | |
from multiprocessing import Pool | |
import signal | |
def parse_redis_url(s): | |
url = urlparse.urlparse(s) | |
if not url.scheme: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
r = redis.Redis() | |
base = 0 # Smallest allowed key in samples | |
jump = 50 # Key size bins | |
top = 1300 # Largest allowed key in sample | |
samples = 1000 # Numbers of samples | |
bins = [] | |
for i in xrange(1+(top-base)/jump): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server.c b/src/server.c | |
index 16cf285e1..9b4fb30b0 100644 | |
--- a/src/server.c | |
+++ b/src/server.c | |
@@ -27,6 +27,7 @@ | |
* POSSIBILITY OF SUCH DAMAGE. | |
*/ | |
+ | |
#include "server.h" |