X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_nightly;h=984c673d975f1623796e851ab914892f19afc94a;hp=22782d1330ebd80c99adbf7507c9539bb083477b;hb=f6fbcc3682d2bc9e7dfdc26e95bd5fcdb359496d;hpb=3f3d4f4adbd990e15969d9cbc5e99e89e613e502 diff --git a/bin/BackupPC_nightly b/bin/BackupPC_nightly index 22782d1..984c673 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-2004 Craig Barratt +# Copyright (C) 2001-2007 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.0.0, released 28 Jan 2007. +# Version 3.2.0beta0, released 5 April 2009. # # 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++; }