aboutsummaryrefslogtreecommitdiff
path: root/_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md')
-rw-r--r--_posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md8
1 files changed, 4 insertions, 4 deletions
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
146import sys 146import sys
147 147
148if len(sys.argv) < 3: 148if len(sys.argv) < 3:
149 print("usage: python sqlite-benchmark.py DB_PATH NUM_RECORDS REPEAT") 149 print("usage: python sqlite-benchmark.py DB_PATH NUM_RECORDS REPEAT")
150 exit() 150 exit()
151 151
152def data_iter(x): 152def data_iter(x):
153 for i in range(x): 153 for i in range(x):
154 yield "m" + str(i), "f" + str(i*i) 154 yield "m" + str(i), "f" + str(i*i)
155 155
156header_line = "%s\t%s\t%s\t%s\t%s\n" % ("DROPTABLE", "CREATETABLE", "INSERTMANY", "FETCHALL", "COMMIT") 156header_line = "%s\t%s\t%s\t%s\t%s\n" % ("DROPTABLE", "CREATETABLE", "INSERTMANY", "FETCHALL", "COMMIT")
157with open("sqlite-benchmarks.tsv", "w") as fp: 157with open("sqlite-benchmarks.tsv", "w") as fp: