[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. v4.0rc1-77-g5639d49e
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2020-09-01 11:46:43
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 5639d49e489bbbc0ccf044ae2d17f7ded9971288 (commit) from e4b571af0db86c4535b0cc64a73f050298a10a2c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5639d49e489bbbc0ccf044ae2d17f7ded9971288 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Aug 31 23:03:58 2020 -0500 Fix -Z time display https://github.com/Hamlib/Hamlib/issues/360 diff --git a/src/debug.c b/src/debug.c index 70fc6acc..1aacbb56 100644 --- a/src/debug.c +++ b/src/debug.c @@ -150,10 +150,12 @@ char *date_strget(char *buf, int buflen) { char tmp[16]; struct tm *mytm; + time_t t; struct timeval tv; - gettimeofday(&tv, NULL); - mytm = gmtime(&tv.tv_sec); + t = time(NULL); + mytm = gmtime(&t); strftime(buf, buflen, "%Y-%m-%d:%H:%M:%S.", mytm); + gettimeofday(&tv, NULL); sprintf(tmp, "%06ld", (long)tv.tv_usec); strcat(buf, tmp); return buf; ----------------------------------------------------------------------- Summary of changes: src/debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |