mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
Fix header usage functionality
This commit is contained in:
parent
05f87bc78b
commit
110ee840cc
@ -214,7 +214,7 @@ public:
|
||||
reader_.next_line_converter_.set_column_mapping(column_mappings,
|
||||
header_.size());
|
||||
|
||||
if (line() == 1) {
|
||||
if (line() == 0) {
|
||||
ignore_next();
|
||||
}
|
||||
}
|
||||
|
@ -78,13 +78,17 @@ struct unique_file_name {
|
||||
|
||||
unique_file_name(const std::string& test) {
|
||||
do {
|
||||
name = "random_file_test_" + test + "_" + std::to_string(i++) +
|
||||
name = "ssp_test_" + test + "_" + std::to_string(i++) +
|
||||
"_" + time_now_rand() + "_file.csv";
|
||||
} while (std::filesystem::exists(name));
|
||||
}
|
||||
|
||||
~unique_file_name() {
|
||||
try {
|
||||
std::filesystem::remove(name);
|
||||
} catch (const std::filesystem::filesystem_error& e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user