1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Remove trailing spaces and make some esthetic cleaning

This commit is contained in:
Luc Didry 2012-05-21 11:35:22 +02:00
parent 8da25e681b
commit b6f9a54af7

View file

@ -113,7 +113,7 @@ while(defined (my $foo = <FILE>)) {
if ($foo =~ m/(\d+)\s+(.+)/) { if ($foo =~ m/(\d+)\s+(.+)/) {
my ($field, $value) = ($2, $1); my ($field, $value) = ($2, $1);
clean_path(\$field); clean_path(\$field);
print $field, ".value ", $value, "\n"; print $field, ".value ", $value, "\n";
} }
} }
close(FILE); close(FILE);
@ -121,7 +121,7 @@ daemonize();
# #
## ##
### PUBLiC FONCTiONS ### PUBLIC FONCTIONS
############################################################################### ###############################################################################
## Used to create the fork ## Used to create the fork
sub daemonize { sub daemonize {
@ -149,7 +149,7 @@ sub clean_path {
} }
} ## clean_path } ## clean_path
## Do you really need I told you what this function is going to check ? ## Do you really need I told you what this functions are going to check ?
sub cache_is_too_old { sub cache_is_too_old {
return 1 if (! -e $TIMEFILE); return 1 if (! -e $TIMEFILE);
my ($time) = `cat $TIMEFILE`; my ($time) = `cat $TIMEFILE`;
@ -162,18 +162,18 @@ sub du_not_running {
return 0 if (-e $LOCKFILE); return 0 if (-e $LOCKFILE);
return 1; return 1;
} }
sub munin_exit_done { sub munin_exit_done {
__munin_exit(0); __munin_exit(0);
} ## sub munin_exit_done } ## sub munin_exit_done
sub munin_exit_fail { sub munin_exit_fail {
__munin_exit(1); __munin_exit(1);
} ## sub munin_exit_fail } ## sub munin_exit_fail
# #
## ##
### iNTERNALS FONCTiONS ### INTERNALS FONCTIONS
############################################################################### ###############################################################################
sub __munin_exit { sub __munin_exit {
my $exitcode = shift; my $exitcode = shift;