jhgrizz has asked for the wisdom of the Perl Monks concerning the following question:
result build_mm_rec: N, c:, 1024, mm$ostype = $inforec->ostype; $directory = $inforec->directory; $size = int($inforec->size); $timeframe = $inforec->timeframe; print "build_mm_rec: $ostype, $directory, $size, $timeframe\n"; if ($ostype eq 'N') { print "getting space, size: $size\n"; $TotalNumberOfFreeBytes = (Win32::DriveInfo::DriveSpace($directo +ry))[6]; $TotalNumberOfFreeBytes = int($TotalNumberOfFreeBytes); print "space 1: $TotalNumberOfFreeBytes\n"; my $holder = $TotalNumberOfFreeBytes - 1; print "space 1.5: $holder\n"; $holder = $size / $size; print "space 1.6: $holder\n"; $TotalNumberOfFreeBytes = $TotalNumberOfFreeBytes / $size; print "space 2: $TotalNumberOfFreeBytes\n"; $TotalNumberOfFreeBytes = $TotalNumberOfFreeBytes / $size; print "space 3: $TotalNumberOfFreeBytes\n"; $TotalNumberOfFreeBytes = (((Win32::DriveInfo::DriveSpace($direc +tory))[6])/$size)/$size; } else { $TotalNumberOfFreeBytes = getFreeDisk($size); print "unix space\n"; } print "space: $TotalNumberOfFreeBytes\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Is 17298208768 "too big"?
by cebrown (Pilgrim) on Aug 23, 2002 at 23:06 UTC | |
by cebrown (Pilgrim) on Aug 23, 2002 at 23:08 UTC | |
by jhgrizz (Novice) on Aug 23, 2002 at 23:21 UTC | |
by jhgrizz (Novice) on Aug 23, 2002 at 23:33 UTC | |
|
Re: wrong record type?
by BrowserUk (Patriarch) on Aug 24, 2002 at 07:46 UTC |