fenner be quiet

git-svn-id: http://www.observium.org/svn/observer/trunk@2264 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-06 14:04:53 +00:00
parent 4a2004a53a
commit a5a2ecf990
2 changed files with 26 additions and 3 deletions

View File

@@ -22,9 +22,12 @@ $runtime_stats = array();
### Observium Device Discovery
echo("Observium v".$config['version']." Discovery\n\n");
$options = getopt("h:m:i:n:d::a::q");
$options = getopt("h:m:i:n:d::a::");
if (!isset($options['q']))
{
echo("Observium v".$config['version']." Discovery\n\n");
}
if (isset($options['h']))
{
@@ -240,7 +243,7 @@ if ($discovered_devices)
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $discovered_devices devices discovered in $proctime secs";
if ($debug) echo("$string\n");
if($config['version_check']) {
if($config['version_check'] && !isset($options['q'])) {
include("includes/versioncheck.inc.php");
}