X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=plugins%2F08uptime;fp=plugins%2F08uptime;h=89e53ce934dab22a2b8a6a14c3f1a7f7a0921a6b;hb=5fea61b142fcdeaaca2f6640f17e16a0d4e7b5c9;hp=ffa34f643aba55c6ace5928db387c90d708fb4db;hpb=f96cd91ac242f68bc9c7b14b5e4ef45af00cfe60;p=htag.git diff --git a/plugins/08uptime b/plugins/08uptime index ffa34f6..89e53ce 100644 --- a/plugins/08uptime +++ b/plugins/08uptime @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# Copyright (C) 2000-2001 Simon Huggins +# Copyright (C) 2000-2003 Simon Huggins # uptime merely calls uptime. You can influence the output a bit. # This program is free software; you can redistribute it and/or modify it @@ -36,7 +36,9 @@ $uptime =~ s/^.*?(up (?:[0-9]+ days?,)?[^,]+),.*$/$1/ if $cfg{'uptime_time'}; $uptime =~ s/[ ]+/ /g; foreach my $f (@found) { my @f = @{$f}; - if (length $uptime <= $f[1]) { + if ($f[1] eq "*") { + print OUT $uptime,"\n"; + } elsif (length $uptime <= $f[1]) { print OUT chunksizealign($uptime, $f[1], $f[2]),"\n"; } else { htagdie "Can't fit uptime in <= $f[1].\nPerhaps your space isn't big enough.\nAlternatively modify this script to give less information.\n";