[drraw-users] bugs in 2.2a4

Lloyd Parkes Lloyd.Parkes at ird.govt.nz
Wed Nov 21 20:57:17 EST 2007


Hi there,
I've just started playing with drraw and I've been pushing it quite hard. I'm 
afraid that I broke it. Twice. With luck I'll remember to attach the patches 
before I click on send.

This first problem is that with a DS based on a Perl re, the CDEF for the 
summary of the set of DSs is emitted after the CDEFs for the formula. This in 
turn means that the File RE example I have attached won't work. The CDEF 'f' is 
not defined by the time it is used. drraw emits this following rrdtool code

	 CDEF:F0=f0,10000000,/,f,/ \
	 CDEF:F1=f1,10000000,/,f,/ \
	 ...
	 CDEF:F30=f30,10000000,/,f,/ \
	 CDEF:F31=f31,10000000,/,f,/ \
	 CDEF:f=f0,POP,1,f1,POP,1,+,f2,POP,1,+,f3,POP,1,+,f4,POP... \

With the attached patch, CDEF:f is defined before the other CDEFs.

The other problem I have is that while I can stack the F(n) on top of F(n-1), I 
can't stack D(*) on top of F(*). I get

	 AREA:F0#FFFF00: \
	 AREA:F1#FFFF00::STACK \
	 ...
	 AREA:F31#FFFF00::STACK \
	 AREA:D0#0000FF: \
	 AREA:D1#0000FF::STACK \

when I really want

	 AREA:F0#FFFF00: \
	 AREA:F1#FFFF00::STACK \
	 ...
	 AREA:F31#FFFF00::STACK \
	 AREA:D0#0000FF::STACK \
	 AREA:D1#0000FF::STACK \

I'm afraid that I can't be bothered adding this second feature.

While I'm here, it would be nice if the the formulae in _Element, _Formula and 
_tCDEF could refer to the count of items in some way. This is a number that 
drraw calculates, so it should be easy enough to add to _tCDEF at least.

Cheers
-- 
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 890 2437
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drraw - File RE example.png
Type: image/png
Size: 61597 bytes
Desc: not available
Url : http://web.taranis.org/pipermail/drraw-users/attachments/20071121/48d6e2d4/drraw-FileREexample-0001.png
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drraw-2.2a4-patch1
Url: http://web.taranis.org/pipermail/drraw-users/attachments/20071121/48d6e2d4/drraw-2-0001.ksh


More information about the drraw-users mailing list