vm-file-editor: fix incorrect time display
It's used only for display, and never parsed, but still.
This commit is contained in:
parent
a4b3a0c955
commit
c9a25b8915
@ -16,7 +16,7 @@ char *gettime()
|
|||||||
static char retbuf[60];
|
static char retbuf[60];
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
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);
|
(long long) tv.tv_sec, (long long) tv.tv_usec);
|
||||||
return retbuf;
|
return retbuf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user