Changed gettimeofday to time(NULL) in low precision logging.

This commit is contained in:
Markus Makela
2015-03-02 10:32:20 +02:00
parent 04310ae60e
commit 9ec31d029e

View File

@ -707,8 +707,8 @@ size_t snprint_timestamp(
/** Generate timestamp */
gettimeofday(&tv,NULL);
tm = *(localtime(&tv.tv_sec));
t = time(NULL);
tm = *(localtime(&t));
snprintf(p_ts,
MIN(tslen,timestamp_len),
timestamp_formatstr,