mirror of https://github.com/drowe67/librtlsdr.git
fixed bug with mac os using another time struct
parent
1af2be095e
commit
39d225267e
|
@ -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