RRD: bug fixes.

Change-Id: I5d3ca569ce7289fcb117ed4f9468ba3256884dfc
This commit is contained in:
François Rossigneux 2013-06-29 11:26:03 +02:00
parent 1f47df830c
commit 643bfbd502
2 changed files with 3 additions and 1 deletions

View File

@ -15,8 +15,8 @@ png_dir = /var/lib/kwapi/kwapi-png
rrd_dir = /var/lib/kwapi/kwapi-rrd
# Billing
kwh_price = 0.125
currency = €
kwh_price = 0.125
# Graphs
hue = 100

View File

@ -110,6 +110,8 @@ def color_generator(nb_colors):
rgb = tuple([int(x*255) for x in rgb])
yield '#' + struct.pack('BBB', *rgb).encode('hex')
i += step
if step == 0:
break
def create_dirs():