Skip to content

Commit

Permalink
Issue 719: Try using a different approach for windows ID determination.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMSeitzer committed Apr 25, 2024
1 parent 0f3e68f commit 1d6002c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pulleics/pulleics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ void writePeaks(EIC* eic, QCStandard qcStandard, shared_ptr<SearchDataset> searc

int file_unique_id(string filename) {

struct stat file_info;
#ifdef _WIN32
_stat(filename.c_str(), &file_info);
return stoi(filename);
#else
struct stat file_info;
lstat(filename.c_str(), &file_info);
#endif
return static_cast<int>(file_info.st_ino);
#endif
}

void writeEIC(EIC* eic, QCStandard qcStandard, shared_ptr<SearchDataset> searchDataset, string tag) {
Expand Down

0 comments on commit 1d6002c

Please sign in to comment.