[rrd-users] Re: x axis print label

Peter Chiang peter.chiang at osatechnologies.com
Sat Dec 14 01:09:03 MET 2002



I got same weekday name over and over again. for example it would print out

fri fri fri fri fri fri fri
instead of
fri sat sun mon tue web thr

I also tried with hour and sec. it also print out the same label.
don't know what i did wrong? Anyone who help me try to solve this problem.
Thanks.


part of my python script to define x-axis
----------------------------------------------------
day_str = time.strftime("%a", time.localtime(time.time()))
gif_weekly = "-s -604800 " + "-x HOUR:1:DAY:1:DAY:1:3600:" + '"' + day_str +
'"'  ###<-x axis define here


rrdtool graph command
----------------------------------------------------
rrdtool graph /var/www/html/cvs_co3.gif -v "total in min" -t "Weekly Graph
(1 hour Average)" -s -604800 -x HOUR:1:DAY:1:DAY:1:3600:"Sat" -h 400 -w
900 -l 0 DEF:secs=/var/www/html/cvs_co.rrd:checkout:MAX
"CDEF:mins=secs,.0167,*" LINE3:mins#00FF00:"CVS Checkout"


-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch]On Behalf Of Alex van den
Bogaerdt
Sent: Friday, December 13, 2002 2:38 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: x axis print label



On Fri, Dec 13, 2002 at 02:19:34AM -0800, Adam Nealis wrote:

> ...and the strftime format used to generate the text of
> the label (LFM).
>
> Therefore
>
> man strftime

Duh... you're right of course.  Need coffee.
--
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list