2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

comment print statements that are not useful to munin

This commit is contained in:
Kenyon Ralph 2012-02-18 14:32:01 -08:00
parent 444ccae260
commit fc3bfaebc1

View file

@ -47,13 +47,13 @@ use Date::Parse;
my $kern=`sysctl -n kern.version`; my $kern=`sysctl -n kern.version`;
$kern=~ /:\s+(.*\S)\s+\w+\@/; $kern=~ /:\s+(.*\S)\s+\w+\@/;
print "Compile: $1\n"; #print "Compile: $1\n";
$kern=str2time($1); $kern=str2time($1);
my $boot=`sysctl -n kern.boottime`; # OpenBSD will return seconds from the epoch my $boot=`sysctl -n kern.boottime`; # OpenBSD will return seconds from the epoch
if ($ostype ne "OpenBSD") { if ($ostype ne "OpenBSD") {
$boot=~ / sec = (\d+)/; $boot=~ / sec = (\d+)/;
print "Boot: $1\n"; #print "Boot: $1\n";
$boot=$1; $boot=$1;
} }