Skip to content

Commit 0408460

Browse files
Julian Myrchadavidrohr
authored andcommitted
o2-eve: fix problems with event navigation
1 parent f98caa6 commit 0408460

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

EventVisualisation/Base/src/DirectoryLoader.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ deque<string> DirectoryLoader::load(const std::string& path, const std::string&
3131
// comparison with safety if marker not in the filename (-1+1 gives 0)
3232
std::sort(result.begin(), result.end(),
3333
[marker](std::string a, std::string b) {
34-
return a.substr(a.find_last_of(marker) + 1) < b.substr(b.find_last_of(marker) + 1);
34+
return a.substr(a.find_first_of(marker) + 1) < b.substr(b.find_first_of(marker) + 1);
3535
});
3636

3737
return result;

EventVisualisation/Workflow/include/EveWorkflow/FileProducer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FileProducer
3232

3333
public:
3434
explicit FileProducer(const std::string& path, int filesInFolder = -1,
35-
const std::string& name = "tracks_{hostname}_{pid}_{timestamp}.json");
35+
const std::string& name = "tracks_{timestamp}_{hostname}_{pid}.json");
3636

3737
[[nodiscard]] std::string newFileName() const;
3838
};

0 commit comments

Comments
 (0)