X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXLogPrint.pm;h=0d99eb41804a740a9d0e95a18c13cabdf2a93b36;hb=8c339125008c925eefda7c815ccabac9c577ae3f;hp=9bb51f20a579a2e34ecf6220e5690ba7cd9e420a;hpb=3e780d5e889b981487da08cfdef8d9017d46fa8b;p=spider.git diff --git a/perl/DXLogPrint.pm b/perl/DXLogPrint.pm index 9bb51f20..0d99eb41 100644 --- a/perl/DXLogPrint.pm +++ b/perl/DXLogPrint.pm @@ -18,9 +18,12 @@ use DXLog; use Julian; -our $readback = `which tac`; +our $readback = 1; +if ($readback) { + $readback = `which tac`; +} chomp $readback; -undef $readback; # yet another reason not to use the cloud! +#undef $readback; # yet another reason not to use the cloud! use strict; @@ -109,7 +112,7 @@ sub print return "show/$name: ${s}not found"; } - for (reverse @in) { + for (sort {$a <=> $b } @in) { my @line = split /\^/ ; push @out, print_item(\@line);