Skip to content
Snippets Groups Projects

Fix dumb typo in local run number generation

Merged Laurent Petre requested to merge bugfix/local-run-number into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -885,7 +885,7 @@ uint64_t gem::supervisor::GEMSupervisor::getNewLocalRunNumber()
@@ -885,7 +885,7 @@ uint64_t gem::supervisor::GEMSupervisor::getNewLocalRunNumber()
uint32_t localRunNumber = 2'000'000'000; // First era
uint32_t localRunNumber = 2'000'000'000; // First era
localRunNumber += ((now.tm_year - 100) * 365 + now.tm_yday - 1) * 100'000; // Epoch on 1 January 2000 00:00:00 UTC
localRunNumber += ((now.tm_year - 100) * 365 + now.tm_yday - 1) * 100'000; // Epoch on 1 January 2000 00:00:00 UTC
localRunNumber += now.tm_hour + 3600 + now.tm_min * 60 + now.tm_sec;
localRunNumber += now.tm_hour * 3600 + now.tm_min * 60 + now.tm_sec;
for (;; ++localRunNumber) {
for (;; ++localRunNumber) {
if (std::filesystem::create_directories(m_outputPath.value_ + "/run" + runNumberToString(localRunNumber, true)))
if (std::filesystem::create_directories(m_outputPath.value_ + "/run" + runNumberToString(localRunNumber, true)))
Loading