From 48aafcc7ac34302a98649b19b67e9dd88f731f3c Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 6 Aug 2018 06:50:23 +0200 Subject: update --- ...18-01-16-using-digitalocean-spaces-object-storage-with-fuse.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md') diff --git a/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md b/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md index 35cbebd..c172a9b 100644 --- a/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md +++ b/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md @@ -146,12 +146,12 @@ import sqlite3 import sys if len(sys.argv) < 3: - print("usage: python sqlite-benchmark.py DB_PATH NUM_RECORDS REPEAT") - exit() + print("usage: python sqlite-benchmark.py DB_PATH NUM_RECORDS REPEAT") + exit() def data_iter(x): - for i in range(x): - yield "m" + str(i), "f" + str(i*i) + for i in range(x): + yield "m" + str(i), "f" + str(i*i) header_line = "%s\t%s\t%s\t%s\t%s\n" % ("DROPTABLE", "CREATETABLE", "INSERTMANY", "FETCHALL", "COMMIT") with open("sqlite-benchmarks.tsv", "w") as fp: -- cgit v1.2.3