qubes-restore: properly format time

2 microseconds are not 2 deciseconds
This commit is contained in:
Vincent Penquerc'h 2013-12-30 09:11:43 -05:00 committed by Marek Marczykowski-Górecki
parent bf6486e973
commit 95c76e071e

View File

@ -89,7 +89,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;
}