From 07bbdca089509a9e2b7ab4c33f7c2dab005de959 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 16 Nov 2017 19:12:04 +0000 Subject: [PATCH] latan-resample fix --- utils/resample.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/resample.cpp b/utils/resample.cpp index 76bdeda..c3f6a66 100644 --- a/utils/resample.cpp +++ b/utils/resample.cpp @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) opt.addOption("f", "format" , OptParser::OptType::value, true, "output file format", DEF_FMT); opt.addOption("d", "dump-boot" , OptParser::OptType::trigger, true, - "dump bootstrap sequence", DEF_FMT); + "dump bootstrap sequence"); opt.addOption("" , "help" , OptParser::OptType::trigger, true, "show this help message and exit"); parsed = opt.parse(argc, argv); @@ -127,7 +127,7 @@ int main(int argc, char *argv[]) cout << '\r' << ProgressBar(i + 1, name.size()); data[name[i]].bin(binSize); - if (i == 0) + if ((i == 0) and dumpBoot) { ofstream file(outDirName + "/" + manFileName + ".bootseq");