Merge pull request #90 from theresiasnow/bugfix/mac_os_time_struct_fix

Bugfix/mac os time struct fix
development
hayati ayguen 2020-08-30 22:32:35 +02:00 committed by GitHub
commit 3864bf7889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ int main(int argc, char **argv)
struct stat attr;
if (!stat(rawfilename, &attr)) {
tim = attr.st_mtime;
fraction = 0.0;
fraction = attr.st_mtimespec.tv_nsec / 1E9;
gotmodtim = 1;
}
#else