From 792ad745dafb65512cdcba3f173f53aee19db568 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Mon, 16 Dec 2024 10:28:44 -0600 Subject: [PATCH] missing if --- src/timeseries/netcdf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeseries/netcdf.cpp b/src/timeseries/netcdf.cpp index 18613a29..cd1f33c7 100644 --- a/src/timeseries/netcdf.cpp +++ b/src/timeseries/netcdf.cpp @@ -262,7 +262,7 @@ void netcdf::open_GEM(const std::string &file) SPDLOG_DEBUG("Found epoch offset = hours"); _epoch_offset_unit = boost::posix_time::hours(1); } - if( epoch.find("days") != std::string::npos ) + else if( epoch.find("days") != std::string::npos ) { SPDLOG_DEBUG("Found epoch offset = days"); _epoch_offset_unit = boost::posix_time::hours(24);