[1/5] from: mauro:fontana:speedautomazione:it at: 21-Jun-2004 9:33
If anyone had a look at my previous script, he will notice that it has problems with files/directories bigger than 2GB. That's because the size sum overflows. I solved the problem by dividing the size by 1000 (so working on KB instead of single bytes). I could have used decimal as well, I suppose. Now I'll try to add an "ignore" extension so that you can not consider some files/dirs in the root directory. Do the arguments of a script passed only with the /args refinement of the do command? Thanks
[2/5] from: gedb01::yahoo::co::uk at: 21-Jun-2004 10:42
Mauro, To convert bytes into kilo bytes you should divide by 1024 rather than 1000. Its a binary thing. --- Mauro Fontana <[mauro--fontana--speedautomazione--it]> wrote: >
> If anyone had a look at my previous script, he will > notice that it has
<<quoted lines omitted: 15>>> rebol-request > at rebol.com with unsubscribe as the subject.
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
[3/5] from: SunandaDH:aol at: 21-Jun-2004 6:44
> To convert bytes into kilo bytes you should divide by > 1024 rather than 1000. Its a binary thing.
It's also a very confusing thing, as there is no consistent usage, see, for example: http://physics.nist.gov/cuu/Units/binary.html What is important is the units in which Mauro's capacities are expressed. For example: "FL-144" [available-space: 1470] The actual capacity of a formatted 1.44MB floppy disk (under WIN/DOS -- it may vary on other OSes) is cap: 2880 * 0.5 * 1024 == 1474560 In 1024-kilo units that's
>> cap / 1024
== 1440 [Normally expressed as 1.44MB by dividing by 1000 (!)] In 1000-kilo units, it's
>> cap / 1000
== 1474.56 which is much closer to the value Mauro is using. I don't know if the other capacities he uses are "decimal kilo" compliant like this one, Sunanda.
[4/5] from: greggirwin:mindspring at: 21-Jun-2004 6:50
Hi Mauro, Glanced at the source again, and noticed that you have a local (TRAILS) in RIGHT-ALIGN that isn't used. Just FYI. -- Gregg
[5/5] from: mauro:fontana:speedautomazione:it at: 22-Jun-2004 14:37
On Mon, 21 Jun 2004 10:42:26 +0100 (BST), Ged Byrne <[gedb01--yahoo--co--uk]> wrote:
> Mauro, > > To convert bytes into kilo bytes you should divide by > 1024 rather than 1000. Its a binary thing.
Hi Ged, thanks for the suggestion. I know the usual IT way is to divide by 1024, but unfortunately both HD, CD and DVD capacities (which are the reason for my script) are calculated in multiple of 1000 bytes, which makes then seem bigger than what one may think. I also think that programs like Nero burning return capacity as multiple of 1000 bytes, so looking at the reported capacity and inserting it as parameter in the script is easier. However it may be possible that the default values I have inserted are wrong. If you have more precise numbers/other media capacity feel free to report them to me so that I can update the script with them.
> Glanced at the source again, and noticed that you have a local > (TRAILS) in RIGHT-ALIGN that isn't used. Just FYI.
Opps, I used it before changing the way the results are showed. Going to remove it. Thanks Mauro
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted