From c9a25b89151b4b63c252eab812037a58768988fd Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Sun, 29 Dec 2013 07:05:35 -0500 Subject: [PATCH] vm-file-editor: fix incorrect time display It's used only for display, and never parsed, but still. --- qubes-rpc/vm-file-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/vm-file-editor.c b/qubes-rpc/vm-file-editor.c index 657d87c..a7eeb86 100644 --- a/qubes-rpc/vm-file-editor.c +++ b/qubes-rpc/vm-file-editor.c @@ -16,7 +16,7 @@ char *gettime() static char retbuf[60]; struct timeval tv; gettimeofday(&tv, NULL); - snprintf(retbuf, sizeof(retbuf), "%lld.%lld", + snprintf(retbuf, sizeof(retbuf), "%lld.%06lld", (long long) tv.tv_sec, (long long) tv.tv_usec); return retbuf; }