mirror of https://github.com/drowe67/librtlsdr.git
Merge pull request #90 from theresiasnow/bugfix/mac_os_time_struct_fix
Bugfix/mac os time struct fixdevelopment
commit
3864bf7889
|
@ -221,7 +221,7 @@ int main(int argc, char **argv)
|
||||||
struct stat attr;
|
struct stat attr;
|
||||||
if (!stat(rawfilename, &attr)) {
|
if (!stat(rawfilename, &attr)) {
|
||||||
tim = attr.st_mtime;
|
tim = attr.st_mtime;
|
||||||
fraction = 0.0;
|
fraction = attr.st_mtimespec.tv_nsec / 1E9;
|
||||||
gotmodtim = 1;
|
gotmodtim = 1;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue