diff options
Diffstat (limited to 'util-linux/script.c')
-rw-r--r-- | util-linux/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index 4eac5e94f..963435335 100644 --- a/util-linux/script.c +++ b/util-linux/script.c | |||
@@ -172,7 +172,7 @@ int script_main(int argc UNUSED_PARAM, char **argv) | |||
172 | struct timeval tv; | 172 | struct timeval tv; |
173 | double newtime; | 173 | double newtime; |
174 | 174 | ||
175 | gettimeofday(&tv, NULL); | 175 | xgettimeofday(&tv); |
176 | newtime = tv.tv_sec + (double) tv.tv_usec / 1000000; | 176 | newtime = tv.tv_sec + (double) tv.tv_usec / 1000000; |
177 | fprintf(timing_fp, "%f %u\n", newtime - oldtime, count); | 177 | fprintf(timing_fp, "%f %u\n", newtime - oldtime, count); |
178 | oldtime = newtime; | 178 | oldtime = newtime; |