ソースを参照

Merge pull request #7665 from ThomasWaldmann/fix-benchmark

benchmark cpu: use sanitized path, fixes #7653
TW 1 年間 前
コミット
c89eb98c18
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/borg/archiver/benchmark_cmd.py

+ 1 - 1
src/borg/archiver/benchmark_cmd.py

@@ -204,7 +204,7 @@ class BenchmarkMixIn:
             print(f"{spec:<12} {size:<10} {timeit(lambda: compressor.compress({}, random_10M), number=10):.3f}s")
 
         print("msgpack ========================================================")
-        item = Item(path="/foo/bar/baz", mode=660, mtime=1234567)
+        item = Item(path="foo/bar/baz", mode=660, mtime=1234567)
         items = [item.as_dict()] * 1000
         size = "100k Items"
         spec = "msgpack"