diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-02-03 10:53:57 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-02-04 09:33:41 -0500 |
commit | 824e1ffa9fd957d05e34f36abe381c2465d89702 (patch) | |
tree | 11a640541956c72fd6d4312ca3438d68a029ae86 /src/bench/bench.h | |
parent | 3ace3a17c9bce606cea05192f0da3ac62ac69dda (diff) | |
download | bitcoin-824e1ffa9fd957d05e34f36abe381c2465d89702.tar.xz |
bench: Represents paths with fs::path instead of std::string
Also uses fs::path quoting in bench printed strings and fixes a
misleading error message.
Originally suggested https://github.com/bitcoin/bitcoin/pull/20744#issuecomment-1022486215
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Diffstat (limited to 'src/bench/bench.h')
-rw-r--r-- | src/bench/bench.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bench/bench.h b/src/bench/bench.h index b959111bc2..6634138beb 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_BENCH_BENCH_H #define BITCOIN_BENCH_BENCH_H +#include <fs.h> #include <util/macros.h> #include <chrono> @@ -44,8 +45,8 @@ struct Args { bool is_list_only; std::chrono::milliseconds min_time; std::vector<double> asymptote; - std::string output_csv; - std::string output_json; + fs::path output_csv; + fs::path output_json; std::string regex_filter; }; |