D
D
Dmitry Bannik2015-08-18 20:47:58
linux
Dmitry Bannik, 2015-08-18 20:47:58

How to align text in rrdtool?

#1 - My Graph
c613f1c1d6814540a155f47a53598c1e.png#2 - Example
graph21.jpgQuestion:
How do I right-align the text in each column as in example #2?
here is a code snippet

COMMENT:'Avr' \
  GPRINT:inTCP:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inHTTP:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inFTP:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inUDP:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inCSGO:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inCSSOLD:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inCSS:AVERAGE:'%0.1lf %sB/s' \
  GPRINT:inCS:AVERAGE:'%0.1lf %sB/s\j' \
  COMMENT:'Cur' \
  GPRINT:inTCP:LAST:'%0.1lf %sB/s' \
  GPRINT:inHTTP:LAST:'%0.1lf %sB/s' \
  GPRINT:inFTP:LAST:'%0.1lf %sB/s' \
  GPRINT:inUDP:LAST:'%0.1lf %sB/s' \
  GPRINT:inCSGO:LAST:'%0.1lf %sB/s' \
  GPRINT:inCSSOLD:LAST:'%0.1lf %sB/s' \
  GPRINT:inCSS:LAST:'%0.1lf %sB/s' \
  GPRINT:inCS:LAST:'%0.1lf %sB/s\j' \

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-08-18
@BuriK666

try something like%6.2lf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question