From e13e182bdca8bac79365353a535a3f75d8c52557 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 4 Jan 2011 15:44:08 +0000 Subject: [PATCH] fix lib path and syntax error in stat --- bin/BackupPC_removeBurnedArchives | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/BackupPC_removeBurnedArchives b/bin/BackupPC_removeBurnedArchives index da45dad..b209f4b 100755 --- a/bin/BackupPC_removeBurnedArchives +++ b/bin/BackupPC_removeBurnedArchives @@ -2,7 +2,7 @@ use strict; no utf8; -use lib "__INSTALLDIR__/lib"; +use lib "/usr/local/BackupPC/lib"; use DBI; use BackupPC::Lib; use BackupPC::SearchLib; @@ -35,7 +35,7 @@ while (my $row = $sth->fetchrow_hashref()) { $filename .= ".tar.gz"; $filename = $tar_dir . "/" . $filename; - my $fs_size = stat($filename)[7]; + my $fs_size = (stat($filename))[7]; $totalRemoved += $fs_size; print "removing $filename... size: $fs_size\n"; # if (system("rm $filename") != 0) { -- 2.20.1