X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_nightly;h=fbef7dd99712550c832e51d6449dbf3f2d3dcc9d;hp=9dbdb2d0add38e0d967831d033460568bd94d276;hb=f60ab5052143af5c1e85a556dddf9e58f1c2295e;hpb=82ffaa1c4130a34812fb241c2ea5cd3d0608bdab diff --git a/bin/BackupPC_nightly b/bin/BackupPC_nightly index 9dbdb2d..fbef7dd 100755 --- a/bin/BackupPC_nightly +++ b/bin/BackupPC_nightly @@ -1,4 +1,4 @@ -#!/bin/perl +#!/usr/bin/perl #============================================================= -*-perl-*- # # BackupPC_nightly: Nightly cleanup & statistics script. @@ -37,7 +37,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2001-2007 Craig Barratt +# Copyright (C) 2001-2009 Craig Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -55,7 +55,7 @@ # #======================================================================== # -# Version 3.1.0beta0, released 3 Sep 2007. +# Version 3.2.0, released 31 Jul 2010. # # See http://backuppc.sourceforge.net. # @@ -297,7 +297,7 @@ sub GetPoolStats $fullPath =~ s/_\d+$//; $FixList{$fullPath}++; } else { - if ( /_(\d+)$/ ) { + if ( $file =~ /_(\d+)$/ ) { $fileRepMax = $1 + 1 if ( $fileRepMax <= $1 ); $fileCntRep++; }