Skip to content
Permalink
Browse files

Update mercury.class.php

  • Loading branch information...
directman66 committed Mar 1, 2019
1 parent 5e8cd1c commit 7563db17d6412c58cac26dabfd3a53263dee10cd
Showing with 8 additions and 5 deletions.
  1. +8 −5 modules/mercury/mercury.class.php
@@ -480,14 +480,17 @@ function searchdevices(&$out) {
$online=ping(processTitle($ip));
$cmd='
$online=ping(processTitle('.$ip.'));
$online=ping(processTitle("'.$ip.'"));
if ($online)
{SQLexec("update mercury_devices set ONLINE="1", LASTPING=".time()." where IP='.$ip.'");}
{SQLexec("update mercury_devices set ONLINE=1, LASTPING='.time().' where IPADDR=\''.$ip.'\'");}
else
{SQLexec("update mercury_devices set ONLINE="0", LASTPING=".time()." where IP='.$ip.'");}
}
{SQLexec("update mercury_devices set ONLINE=0, LASTPING='.time().' where IPADDR=\''.$ip.'\'");}
';
SetTimeOut('mercury_devices_ping',$cmd, '10');
SetTimeOut('mercury_devices_ping',$cmd, '1');
/*
if ($online)

0 comments on commit 7563db1

Please sign in to comment.
You can’t perform that action at this time.