Module: check_mk
Branch: master
Commit: b2259fa52496058e717f3bda95d8913c65309ab9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2259fa5249605…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Apr 6 18:40:59 2015 +0200
metrics: fix function for lightening of colors
---
web/htdocs/metrics.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index c27b758..ac48d1f 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -916,7 +916,7 @@ def darken_color(rgb, v):
# Make a color lighter. v ranges from 0 (not lighter) to 1 (white)
def lighten_color(rgb, v):
def lighten(x, v):
- return x + ((1.0 - x) * (1.0 - v))
+ return x + ((1.0 - x) * v)
return tuple([ lighten(x, v) for x in rgb ])
def mix_colors(a, b):