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

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

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


Revision 1.1 - (show annotations) (download)
Mon Aug 14 19:34:11 2017 UTC (7 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-rdiff-backup-0_0_1-20_el6_sme, HEAD
Initial import

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