Gossamer Forum
Home : Products : Others : Fileman :

Disk Space Problem --> Really weird

Quote Reply
Disk Space Problem --> Really weird
When the script checks the disk space in my root directory, the output is -84567196 kb and uhhh i dont think thats right. I have 200 megs available on my server and i only used about 3. When i click on "Disk Usage" the alert gives me 84567196 kb used and -84567196 available...theres gotta be something wrong with the script. PLEASE help me.

Quote Reply
Re: Disk Space Problem --> Really weird In reply to
yeah, you right..
am just noticed that "Disk usage" returns incorrect values
(actually i never tried that before :-)

btw, have you changed the following default parameter?
======================
allowed_space => 500,
======================
(that means 500KB, i guess)

just set it to, let's say: 200000
(200 MB)

as for that function, i'd rather use some OS specific command like "du -ks" for disk_usage statistic
instead of "File::Find" module ('cuz i know Unix shell better than Perl :-)
will check that, anyway..

Quote Reply
Re: Disk Space Problem --> Really weird In reply to
I think the problem was the allowed_space function. After reading the text file on how to configure the script to my liking, i didnt want the script to check the available disk space so i deleted the allowed_space command line. That was my problem. I put it back in and set it to 200000 and it works fine...thanks