Skip to content

Commit 792ad74

Browse files
committed
missing if
1 parent 9259c48 commit 792ad74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeseries/netcdf.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void netcdf::open_GEM(const std::string &file)
262262
SPDLOG_DEBUG("Found epoch offset = hours");
263263
_epoch_offset_unit = boost::posix_time::hours(1);
264264
}
265-
if( epoch.find("days") != std::string::npos )
265+
else if( epoch.find("days") != std::string::npos )
266266
{
267267
SPDLOG_DEBUG("Found epoch offset = days");
268268
_epoch_offset_unit = boost::posix_time::hours(24);

0 commit comments

Comments
 (0)