projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix lib path and syntax error in stat
[BackupPC.git]
/
bin
/
BackupPC_removeBurnedArchives
diff --git
a/bin/BackupPC_removeBurnedArchives
b/bin/BackupPC_removeBurnedArchives
index
da45dad
..
b209f4b
100755
(executable)
--- a/
bin/BackupPC_removeBurnedArchives
+++ b/
bin/BackupPC_removeBurnedArchives
@@
-2,7
+2,7
@@
use strict;
no utf8;
use strict;
no utf8;
-use lib "
__INSTALLDIR__
/lib";
+use lib "
/usr/local/BackupPC
/lib";
use DBI;
use BackupPC::Lib;
use BackupPC::SearchLib;
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;
$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) {
$totalRemoved += $fs_size;
print "removing $filename... size: $fs_size\n";
# if (system("rm $filename") != 0) {