Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Derek on November 24, 2004, 02:50:24 PM
-
can anyone tell me what is causing this error and what is it refering to, and how to fix it?
i get this in my email every morning from the cronjob
Use of uninitialized value in numeric gt (>) at /usr/local/bin/durep line 502.
Use of uninitialized value in addition (+) at /usr/local/bin/durep line 506.
Derek
-
durep is a disk usage reporting tool, as to why its causing that error I could not tell you.
-
I have seen this occasionally, but not debugged it. As a quick exercise I checked the code:
Use of uninitialized value in numeric gt (>) at /usr/local/bin/durep line 502.
Use of uninitialized value in addition (+) at /usr/local/bin/durep line 506.
501 # If hard links > 1 then ensure we don't count this file more than once
502 if($s[3] > 1) {
503 next if($inodes{$s[0]}{$s[1]});
504 $inodes{$s[0]}{$s[1]} = 1;
505 }
506 %files->{SIZE} += $s[7] if(include_file($_, \@s));
507 %files->{COUNT}++;
so $s[3] (nlink) is not initialised, and probably (size) $s[7]
A wild guess is that lstat failed (477 @s = lstat $child;) although no idea why.
Maybe contact the contributor for this psc@saco-gmbh.de (see http://no.longer.valid/phpwiki/index.php/Disk%20Usage%20Report )
-
I have the same problem for the first time this night : (sme6.0.01)
Use of uninitialized value in numeric gt (>) at /usr/local/bin/durep line 502.
Use of uninitialized value in addition (+) at /usr/local/bin/durep line 506.
Use of uninitialized value in numeric gt (>) at /usr/local/bin/durep line 502.
Use of uninitialized value in addition (+) at /usr/local/bin/durep line 506.
-
Hi,
i release :hammer: a new version shortly.
Best Peter