N
Nation, Carey
Hi,
I've written a script to monitor some files stored on our network. The
files range from a few hundred MB to 20-50g. Above a certain point
which I haven't really narrowed down yet, the file sizes start being
reported incorrectly from my script. It's as if the routine that does
the system query is using a 32 bit thing for the size and it's getting
truncated as integers do. Some files actually come back with a negative
size. The data type that ruby is using is perfectly capable of holding
the size of the files. I've tried File.size? and FileUtils.size?, so
I'm somewhat at a loss short of writing an extension. Any ideas?
=20
The script is running on windows, querying the files via UNC paths
through a samba share on linux.
=20
Thanks!
=20
________________________________
Carey Nation <mailto:[email protected]> =20
Lead Software Engineer
CNN BEST
Broadcast Production Systems
Video Solutions Group
(404)827-2935 (wk)
(404)824-0033 (cell)
________________________________
=20
I've written a script to monitor some files stored on our network. The
files range from a few hundred MB to 20-50g. Above a certain point
which I haven't really narrowed down yet, the file sizes start being
reported incorrectly from my script. It's as if the routine that does
the system query is using a 32 bit thing for the size and it's getting
truncated as integers do. Some files actually come back with a negative
size. The data type that ruby is using is perfectly capable of holding
the size of the files. I've tried File.size? and FileUtils.size?, so
I'm somewhat at a loss short of writing an extension. Any ideas?
=20
The script is running on windows, querying the files via UNC paths
through a samba share on linux.
=20
Thanks!
=20
________________________________
Carey Nation <mailto:[email protected]> =20
Lead Software Engineer
CNN BEST
Broadcast Production Systems
Video Solutions Group
(404)827-2935 (wk)
(404)824-0033 (cell)
________________________________
=20