From 0506848e378b69b91d74b087d9695d89814adcdf Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 08:03:56 +0000 Subject: Apply patch autofs-5.1.4-fix-monotonic_elapsed.patch patch_name: autofs-5.1.4-fix-monotonic_elapsed.patch present_in_specfile: true --- diff --git a/CHANGELOG b/CHANGELOG index 104fca9..313730b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,6 +10,7 @@ xx/xx/2018 autofs-5.1.5 - add error handling for ext_mount_add(). - account for recent libnsl changes. - use_hostname_for_mounts shouldn't prevent selection among replicas. +- fix monotonic_elapsed. 19/12/2017 autofs-5.1.4 - fix spec file url. diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c index 73097c9..60ede9f 100644 --- a/lib/rpc_subs.c +++ b/lib/rpc_subs.c @@ -1093,9 +1093,9 @@ double monotonic_elapsed(struct timespec start, struct timespec end) double t1, t2; t1 = (double) start.tv_sec + - (double) (start.tv_nsec/(1000*1000*1000)); + ((double) start.tv_nsec/(1000*1000*1000)); t2 = (double) end.tv_sec + - (double) (end.tv_nsec/(1000*1000*1000)); + ((double) end.tv_nsec/(1000*1000*1000)); return t2 - t1; }