From ac3ebb06a30416a3ea3a7d7180a748347558a894 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 25 Sep 2011 18:05:15 +0000 Subject: [PATCH] Use "master" instead of "wwwmaster" since we support more than one type of mirror git-svn-id: https://pgweb.postgresql.org/svn/trunk@2895 8f5c7a92-453e-0410-a47f-ad33c8a6b003 --- automirror.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automirror.php b/automirror.php index 8d2fe1b..ff7d2e5 100644 --- a/automirror.php +++ b/automirror.php @@ -49,8 +49,8 @@ function check_mirror($log, $db, $mirrtype, $MASTERIP, $MASTERHOST, $MIRRORHOST, $diff = $wwwmaster->_lastupdate - $current->_lastupdate; if ($diff < 0) { - $log->Log('Mirror ' . $row[1] . ' (' . $row[3] . ') claims to be newer than wwwmaster!'); - $log->Log('Mirror has ' . $current->LastUpdatedStr() . ', wwwmaster has ' . $wwwmaster->LastUpdatedStr()); + $log->Log('Mirror ' . $row[1] . ' (' . $row[3] . ') claims to be newer than master!'); + $log->Log('Mirror has ' . $current->LastUpdatedStr() . ', master has ' . $wwwmaster->LastUpdatedStr()); if ($row[2] == 1) { $db->DisableMirror($row[0],'Newer than master'); $log->Log('Mirror ' . $row[1] . ' now disabled'); @@ -59,7 +59,7 @@ function check_mirror($log, $db, $mirrtype, $MASTERIP, $MASTERHOST, $MIRRORHOST, } if ($diff > $MAX_TIME_DIFF) { $log->Log('Mirror ' . $row[1] . ' (' . $row[3] . ') has not been updated.'); - $log->Log('Mirror has ' . $current->LastUpdatedStr() . ', wwwmaster has ' . $wwwmaster->LastUpdatedStr()); + $log->Log('Mirror has ' . $current->LastUpdatedStr() . ', master has ' . $wwwmaster->LastUpdatedStr()); if ($row[2] == 1) { $db->DisableMirror($row[0],'Not updated'); $log->Log('Mirror ' . $row[1] . ' now disabled'); -- 2.39.5