Browse Source

vm-file-editor: fix incorrect time display

It's used only for display, and never parsed, but still.
Vincent Penquerc'h 10 năm trước cách đây
mục cha
commit
c9a25b8915
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      qubes-rpc/vm-file-editor.c

+ 1 - 1
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;
 }