convert win32 file times to millis

This commit is contained in:
Doug MacEachern 2005-07-07 17:18:30 +00:00
parent 73eed8b1c7
commit d84714cf8c
1 changed files with 3 additions and 3 deletions

View File

@ -150,9 +150,9 @@ static void fillin_fileattrs(sigar_file_attrs_t *finfo,
{
DWORD *sizes = &wininfo->nFileSizeHigh;
finfo->atime = FileTimeToTime(&wininfo->ftLastAccessTime);
finfo->ctime = FileTimeToTime(&wininfo->ftCreationTime);
finfo->mtime = FileTimeToTime(&wininfo->ftLastWriteTime);
finfo->atime = FileTimeToTime(&wininfo->ftLastAccessTime) / 1000;
finfo->ctime = FileTimeToTime(&wininfo->ftCreationTime) / 1000;
finfo->mtime = FileTimeToTime(&wininfo->ftLastWriteTime) / 1000;
finfo->size = (sigar_uint64_t)sizes[1];
if (finfo->size < 0 || sizes[0]) {