Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • b383306/libcdi
  • mpim-sw/libcdi
  • m214007/libcdi
3 results
Show changes
Commits on Source (2)
......@@ -13,22 +13,17 @@ mo_cdi_mod = mo_cdi.$(FCMODEXT)
endif !FC_MOD_UPPERCASE
if ENABLE_CDI_LIB
pkgconfigdir = $(libdir)/pkgconfig
cmakedir = $(libdir)/cmake/cdi
include_HEADERS =
nodist_pkgconfig_DATA =
nodist_cmake_DATA =
nodist_include_HEADERS =
include_HEADERS += \
include_HEADERS = \
calendar.h \
cdi.h \
cdi_datetime.h \
julian_date.h
nodist_include_HEADERS =
lib_LTLIBRARIES += libcdi.la
nodist_pkgconfig_DATA += pkgconfig/cdi.pc
nodist_cmake_DATA += \
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = pkgconfig/cdi.pc
cmakedir = $(libdir)/cmake/cdi
nodist_cmake_DATA = \
cmake/cdi/cdi-config-version.cmake \
cmake/cdi/cdi-config.cmake
if ENABLE_CF_INTERFACE
......
......@@ -104,9 +104,10 @@ secofday_decode(double secondOfDay)
{
CdiTime time;
const int fullSeconds = (int) secondOfDay;
double secondOfDayIntegral;
time.ms = lround(modf(secondOfDay, &secondOfDayIntegral) * 1000);
time.ms = (int) lround((secondOfDay - fullSeconds) * 1000);
const int fullSeconds = lrint(secondOfDayIntegral);
const int hour = fullSeconds / 3600;
const int minute = fullSeconds / 60 - hour * 60;
......