Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 7d71b6c

Browse files
author
Robin Bowes
committed
white space changes
1 parent 26c6da9 commit 7d71b6c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

mysql-agent.pl

+15-15
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
#
1616
# This program is distributed in the hope that it will be useful,
1717
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1919
# GNU General Public License for more details.
2020
#
2121
# You should have received a copy of the GNU General Public License
22-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2323
#
2424

2525
use strict;
@@ -370,14 +370,14 @@ sub fetch_mysql_data {
370370
$status{'relay_log_space'} = $row->{'relay_log_space'};
371371
$status{'slave_lag'} = $row->{'seconds_behind_master'};
372372

373-
# Check replication heartbeat, if present.
374-
# if ( $hb_table ) {
375-
# $result = run_query(
376-
# "SELECT GREATEST(0, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(ts) - 1)"
377-
# . "FROM $hb_table WHERE id = 1", $conn);
378-
# $row2 = @mysql_fetch_row($result);
379-
# $status{'slave_lag'} = $row2[0];
380-
# }
373+
# Check replication heartbeat, if present.
374+
# if ( $hb_table ) {
375+
# $result = run_query(
376+
# "SELECT GREATEST(0, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(ts) - 1)"
377+
# . "FROM $hb_table WHERE id = 1", $conn);
378+
# $row2 = @mysql_fetch_row($result);
379+
# $status{'slave_lag'} = $row2[0];
380+
# }
381381

382382
# Scale slave_running and slave_stopped relative to the slave lag.
383383
$status{'slave_running'}
@@ -511,7 +511,7 @@ sub fetch_mysql_data {
511511
elsif ( $line =~ m/Log flushed up to/ ) {
512512

513513
# Since PHP can't handle 64-bit numbers, we'll ask MySQL to do it for
514-
# us instead. And we get it to cast them to strings, too.
514+
# us instead. And we get it to cast them to strings, too.
515515
@flushed_to = ( $row[4], $row[5] );
516516
}
517517

@@ -714,8 +714,8 @@ ($$$$)
714714
my ( $handler, $registration_info, $request_info, $requests ) = @_;
715715
my ($request);
716716

717-
# print STDERR "refs: ",join(", ", ref($handler), ref($registration_info),
718-
# ref($request_info), ref($requests)),"\n" if ($debugging);
717+
# print STDERR "refs: ",join(", ", ref($handler), ref($registration_info),
718+
# ref($request_info), ref($requests)),"\n" if ($debugging);
719719

720720
for ( $request = $requests; $request; $request = $request->next() ) {
721721

@@ -754,7 +754,7 @@ ($$$$)
754754
$i++;
755755

756756
#print STDERR "Comparing $oid to $oidToUse ".ref($oid)." ".ref($oidToUse).
757-
# " cmp=".NetSNMP::OID::compare($oid, $oidToUse)." cmp2=".($oid <= $oidToUse)."\n";
757+
# " cmp=".NetSNMP::OID::compare($oid, $oidToUse)." cmp2=".($oid <= $oidToUse)."\n";
758758
} while ( NetSNMP::OID::compare( $oid, $oidToUse ) > -1
759759
and $i <= scalar @ks );
760760

@@ -776,7 +776,7 @@ ($$)
776776
print STDERR $msg . "\n" if ($debugging);
777777
}
778778

779-
# We need to perform a loop here waiting for snmp requests. We
779+
# We need to perform a loop here waiting for snmp requests. We
780780
# also check for new STATUS data.
781781
$SIG{'INT'} = \&shut_it_down;
782782
$SIG{'QUIT'} = \&shut_it_down;

0 commit comments

Comments
 (0)