# HG changeset patch # User Matt Johnston # Date 1343228614 -28800 # Node ID 68a44d0ec5997c18d916657caa633f4301fcb416 # Parent 9485da05bc110ea1def61e19fd9148fbd76bba9d# Parent fd8482365489de35cd0809b648fc4b802d185b29 merge diff -r 9485da05bc11 -r 68a44d0ec599 web/log.py --- 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 = 'ยบC' last_value = float(rrdtool.info(rrdfile)['ds[temp].last_ds'])