changeset 408:88f578f36bde

merge
author Matt Johnston <matt@ucc.asn.au>
date Wed, 25 Jul 2012 23:03:34 +0800
parents 594d8be26bfb (current diff) 36a33c56c383 (diff)
children 1854abee5a59
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/web/log.py	Tue Jul 17 21:59:55 2012 +0800
+++ b/web/log.py	Wed Jul 25 23:03:34 2012 +0800
@@ -70,7 +70,8 @@
         else:
             vname = 'temp%d' % n
             graph_args.append('DEF:raw%(vname)s=%(rrdfile)s:temp:AVERAGE' % locals())
-            graph_args.append('CDEF:%(vname)s=raw%(vname)s,0.1,*,2,+' % locals())
+            # limit max temp to 50
+            graph_args.append('CDEF:%(vname)s=raw%(vname)s,35,GT,UNKN,raw%(vname)s,0.1,*,2,+,IF' % locals())
             unit = '<span face="Liberation Serif">ยบ</span>C'
 
         last_value = float(rrdtool.info(rrdfile)['ds[temp].last_ds'])