From 9069af45e691d1252c727da66aa4f3f3c7f1ea29 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 30 Sep 2010 16:42:13 -0600 Subject: stat: print timestamps to full resolution * src/stat.c (epoch_time): New function. (print_stat): Use it for %[WXYZ]. * NEWS: Document this. * tests/touch/60-seconds: Adjust test to match. * tests/misc/stat-birthtime: Likewise. --- tests/misc/stat-birthtime | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/misc/stat-birthtime') diff --git a/tests/misc/stat-birthtime b/tests/misc/stat-birthtime index b54268c11..38e5d5947 100755 --- a/tests/misc/stat-birthtime +++ b/tests/misc/stat-birthtime @@ -28,8 +28,7 @@ ctime=$(stat --format %Z a) || fail=1 case $(stat --format %x a) in *.000000000*) sleep 2;; # worst case file system is FAT - *) # FIXME: sleep .1 would be sufficient if %X is fixed to show nanoseconds - sleep 1;; + *) sleep .02;; # should be adequate for any system with subsecond resolution esac touch a || fail=1 -- cgit v1.2.3-70-g09d2