From 338c73fd28bf3fbed831b624f2345af02355b329 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 24 Apr 2019 03:35:26 -0400 Subject: [PATCH] [core] use high precision stat timestamp in etag use high precision stat timestamp (on systems where available) in etag --- src/etag.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/etag.c b/src/etag.c index c534e4e3..a89c4e51 100644 --- a/src/etag.c +++ b/src/etag.c @@ -160,6 +160,9 @@ int etag_create(buffer *etag, const struct stat *st, etag_flags_t flags) { if (flags & ETAG_USE_MTIME) { buffer_append_int(etag, st->st_mtime); + #ifdef st_mtime /* use high-precision timestamp if available */ + buffer_append_int(etag, st->st_mtim.tv_nsec); + #endif } return 0;