Browse Source

[core] use high precision stat timestamp in etag

use high precision stat timestamp (on systems where available) in etag
personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent
commit
338c73fd28
  1. 3
      src/etag.c

3
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;

Loading…
Cancel
Save