fixed bug with mac os using another time struct

development
Theresia Sofia Snow 2020-08-30 22:17:57 +02:00
parent 1af2be095e
commit 39d225267e
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