diff options
author | Greg Troxel <gdt@ir.bbn.com> | 2010-06-04 19:37:11 -0400 |
---|---|---|
committer | Greg Troxel <gdt@ir.bbn.com> | 2010-06-04 19:37:11 -0400 |
commit | 25d16ccde5228e426f2549ce79f4a4e83e0c1ddc (patch) | |
tree | 5ab93888160088b2286e8164c737c94a8a1427d7 /regress-driver | |
parent | 9c63f026a3447ba61743edd923269bfc3e7d0a0b (diff) | |
download | gpsd-25d16ccde5228e426f2549ce79f4a4e83e0c1ddc.tar.gz |
Don't use non-standard %N with date +.
POSIX says that date must support +"specifier" to format dates in
various ways and lists a number of specifiers (including %s for
seconds since the epoch, used in this script), but it does not specify
the use of %N, and %N is not supported by NetBSD's date(1):
http://www.opengroup.org/onlinepubs/000095399/utilities/date.html
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress-driver b/regress-driver index 97b96afb..81c615ef 100755 --- a/regress-driver +++ b/regress-driver @@ -6,7 +6,7 @@ # Requires GNU date extensions # Should return an empty blank string if tose are not present. -starttime=`date +"%s.%N" 2>/dev/null` +starttime=`date +"%s" 2>/dev/null` # We need to have the build directory in $PATH to find the new gpsd # in case there is one in $PATH somewhere else in the system. @@ -141,7 +141,7 @@ case $mode in esac # See starttime above -endtime=`date +"%s.%N" 2>/dev/null` +endtime=`date +"%s" 2>/dev/null` if [ "$starttime" -a "$endtime" ] then |