/[smecontribs]/rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-backuptime.patch2
ViewVC logotype

Contents of /rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-backuptime.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Nov 25 16:20:29 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Restore

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time
2 --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time 2006-05-24 13:18:09.413346993 +1000
3 +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time 2006-05-24 13:18:07.350705708 +1000
4 @@ -4,8 +4,11 @@
5
6 my %props = $rdiff_rec->props();
7
8 - $props{Hour} ||= int(rand(7)); # Early in the morning
9 - $props{Minute} ||= int(rand(60));
10 + my $hour = int(rand(12));
11 + $hour += 12 if $hour > 6;
12 +
13 + exists $props{Hour} or $props{Hour} = $hour;
14 + exists $props{Minute} or $props{Minute} = int(rand(60));
15
16 $rdiff_rec->merge_props(%props);
17 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed