mrtg/uptime.pl

changeset 136
ca197d884ebd
parent 135
cd68ee26852b
child 138
3603322c3b20
     1.1 --- a/mrtg/uptime.pl	Sat Apr 04 22:28:28 2009 +0200
     1.2 +++ b/mrtg/uptime.pl	Sat Apr 04 22:40:04 2009 +0200
     1.3 @@ -1,14 +1,14 @@
     1.4 -#!@l_prefix@/bin/perl
     1.5 -##
     1.6 -##  uptime.pl: provide formatted uptime(1) information
     1.7 -##
     1.8 -
     1.9 -$ZERO = 0;
    1.10 -$uptime = `uptime`;
    1.11 -
    1.12 -$uptime =~ /up (.*?) day/;
    1.13 -$up = int($1);
    1.14 -$hostname = `hostname`;
    1.15 -
    1.16 -print "$ZERO\n$up\n"
    1.17 -
    1.18 +#!@l_prefix@/bin/perl
    1.19 +##
    1.20 +##  uptime.pl: provide formatted uptime(1) information
    1.21 +##
    1.22 +
    1.23 +$ZERO = 0;
    1.24 +$uptime = `uptime`;
    1.25 +
    1.26 +$uptime =~ /up (.*?) day/;
    1.27 +$up = int($1);
    1.28 +$hostname = `hostname`;
    1.29 +
    1.30 +print "$ZERO\n$up\n"
    1.31 +

mercurial