From 6dae6d894984d8c42965616ada6100f60345e40e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 18 Apr 2018 21:29:35 -0400 Subject: [PATCH] fix doubled use --- scripts/zmdc.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index d229efe57..74208f4c6 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -155,8 +155,8 @@ my $server_up = connect( CLIENT, $saddr ); if ( ! $server_up ) { if ( $Config{ZM_SERVER_ID} ) { -use Sys::MemInfo qw(totalmem freemem totalswap freeswap); -use use ZoneMinder::Server qw(CpuLoad); + use Sys::MemInfo qw(totalmem freemem totalswap freeswap); + use ZoneMinder::Server qw(CpuLoad); if ( ! defined $dbh->do(q{UPDATE Servers SET Status=?,TotalMem=?,FreeMem=?,TotalSwap=?,FreeSwap=? WHERE Id=?}, undef, 'NotRunning', &totalmem, &freemem, &totalswap, &freeswap, $Config{ZM_SERVER_ID} ) ) { Error("Failed Updating status of Server record to Not RUnning for Id=$Config{ZM_SERVER_ID}" . $dbh->errstr());