Update sample command-line comment for moved rules file.
[irspy-moved-to-github.git] / bin / irspy-stats.pl
index a9b9ade..3bfe077 100755 (executable)
@@ -1,6 +1,5 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
-# $Id: irspy-stats.pl,v 1.4 2007-01-24 09:28:02 mike Exp $
 #
 #      perl -I ../lib irspy-stats.pl localhost:8018/IR-Explain---1 "net.host=*indexdata*"
 
@@ -8,7 +7,7 @@ use strict;
 use warnings;
 use ZOOM::IRSpy;
 
-if (@ARGV > 2) {
+if (@ARGV < 2) {
     print STDERR "Usage: $0 [CQL-query]\n";
     exit 1;
 }