projects
/
BackupPC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8352b25
)
fix lib path and syntax error in stat
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Jan 2011 15:44:08 +0000
(15:44 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Jan 2011 15:44:08 +0000
(15:44 +0000)
bin/BackupPC_removeBurnedArchives
patch
|
blob
|
history
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 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) {