Skip to content

Commit e960784

Browse files
committed
Merge branch 'online_backup' of https://github.com/RCasatta/opentimestamps-server into online_backup
2 parents 85bce65 + a0a5c98 commit e960784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

otsserver/backup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __kv_map_to_bytes(kv_map):
101101
return ctx.getbytes()
102102

103103
def read_disk_cache(self, chunk):
104-
chunk_str = "{0:0>7}".format(chunk)
104+
chunk_str = "{0:0>6}".format(chunk)
105105
chunk_path = chunk_str[0:3]
106106

107107
try:
@@ -112,7 +112,7 @@ def read_disk_cache(self, chunk):
112112
return None
113113

114114
def write_disk_cache(self, chunk, bytes):
115-
chunk_str = "{0:0>7}".format(chunk)
115+
chunk_str = "{0:0>6}".format(chunk)
116116
chunk_path = chunk_str[0:3]
117117
cache_path = self.cache_path + '/' + chunk_path
118118
os.makedirs(cache_path, exist_ok=True)

0 commit comments

Comments
 (0)