---
ell/path.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ell/path.c b/ell/path.c
index df5a703..e911c01 100644
--- a/ell/path.c
+++ b/ell/path.c
@@ -162,8 +162,7 @@ LIB_EXPORT uint64_t l_path_get_mtime(const char *path)
if (ret < 0)
return L_TIME_INVALID;
- return (uint64_t) sb.st_mtim.tv_sec * 1000000 +
- sb.st_mtim.tv_nsec / 1000;
+ return l_timespec_to_usecs(&sb.st_mtim);
}
/**
--
2.20.1