the -t option of querycalc.

Joost Bekkers joost at bps.eca-mail.org
Fri Apr 27 16:23:03 CEST 2001


On Thu, Apr 26, 2001 at 06:19:08PM +0200, Egon Willighagen wrote:
> Op donderdag 26 april 2001 15:10, schreef Joost Bekkers:
> > Can someone explain the use of the -t option of querycalc to me,
> > I can't get it to work.  I'm trying to make a top 10, with column
> > 6 as the item and the total of column 8 as the value for that item.
> 
> I confirm your bug report; i also cannot get it to work. From the manpage
> i would say it should give the highest value for a certain column. I've 
> search for use of "-t" in the report scripts, but did not find any 
> occurance...
> 
> I think it is a bug and file it as such.
> 
> Your job, however, can be done in this way (see report_bytesperday):
> 
> cat file_to_process | cut -d' ' -f 6,9 | sort | dlf_sum | head -10
> 
> where cut -d' ' uses a space as delimeter...
> 
> Does this answer your question?

yep, but why i'm trying to use a -t(op) function to get a total.....
must have been a monday without coffee. 

The man also shows a --sum option, which is unknown to querycalc
outside of -command and inside -command i can't make a subreport.
When i use @subreports I get no subreports and when I use -s I get
an error.

"Can't call method "Print" on an undefined value at
../logreport/libexec/lire/querycalc line 817."

Also the --sum option seems to be using column+1 as the column to
calculate on. (which makes 0 the first column.)

Anyway, have a nice weekend.

-- 
greetz Joost
joost at eca-mail.org

-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list