Skip to content

Commit

Permalink
move to -r - only catch FileNotFoundError - -r to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmang9 committed Dec 10, 2020
1 parent 045e7be commit b53a59d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) try {

options.allow_unrecognised_options().add_options()(
"k, size", "Plot size", cxxopts::value<uint8_t>(k))(
"h, threads", "Number of threads", cxxopts::value<uint8_t>(num_threads))(
"r, threads", "Number of threads", cxxopts::value<uint8_t>(num_threads))(
"u, buckets", "Number of buckets", cxxopts::value<uint32_t>(num_buckets))(
"s, stripes", "Size of stripes", cxxopts::value<uint32_t>(num_stripes))(
"t, tempdir", "Temporary directory", cxxopts::value<string>(tempdir))(
Expand Down
7 changes: 4 additions & 3 deletions tests/plot-resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def pollSpace():
while bPollSpace:
try:
used = get_size(tempdirpath)
except used.TempFileDeleted:
print("A temp file was deleted while polling. Skipping.")
except FileNotFoundError:
print("A temp file was deleted while polling the temp directory. Skipping.")
pass
if used > pollDisk:
pollDisk = used

Expand All @@ -74,7 +75,7 @@ def run_ProofOfSpace(k_size):
cmd = (
"exec ./ProofOfSpace create -k "
+ k_size
+ " -r 2"
+ " -r 1"
+ " -b 4608"
+ " -u 64"
+ " -t "
Expand Down

0 comments on commit b53a59d

Please sign in to comment.