[PC-BSD Commits] r14617 - pcbsd/current/src-qt4/life-preserver/scripts
svn at pcbsd.org
svn at pcbsd.org
Tue Jan 3 07:11:22 PST 2012
Author: kris
Date: 2012-01-03 15:11:22 +0000 (Tue, 03 Jan 2012)
New Revision: 14617
Modified:
pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh
Log:
Fix a bug in determining if its time to start a new backup
Modified: pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh
===================================================================
--- pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh 2012-01-03 14:25:33 UTC (rev 14616)
+++ pcbsd/current/src-qt4/life-preserver/scripts/check-backups.sh 2012-01-03 15:11:22 UTC (rev 14617)
@@ -29,10 +29,10 @@
year=`cat ${PDIRS}/${p}/last-timestamp | cut -d ':' -f 1`
mon=`cat ${PDIRS}/${p}/last-timestamp | cut -d ':' -f 2`
day=`cat ${PDIRS}/${p}/last-timestamp | cut -d ':' -f 3`
- year=`expr $year \* 3`
- cyear=`expr $cyear \* 3`
- mon=`expr $mon \* 31`
- cmon=`expr $cmon \* 31`
+ year=`expr $year \* 365`
+ cyear=`expr $cyear \* 365`
+ mon=`expr $mon \* 30`
+ cmon=`expr $cmon \* 30`
num1=`expr $cyear + $cmon + $cday`
num2=`expr $year + $mon + $day`
count=`expr $num1 - $num2`
More information about the Commits
mailing list