Changeset b45e75d for src/python/gnuboat/daemon/rrdhandler.py
- Timestamp:
- Sep 21, 2017, 3:17:50 PM (9 years ago)
- Branches:
- 0.5, debian/bullseye, debian/jessie, master
- Children:
- f29f4d3
- Parents:
- 3145648
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (09/21/17 14:52:42)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (09/21/17 15:17:50)
- File:
-
- 1 edited
-
src/python/gnuboat/daemon/rrdhandler.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/python/gnuboat/daemon/rrdhandler.py
r3145648 rb45e75d 40 40 rrd_archives = [] 41 41 for i in range(0, len(archives)): 42 rrd_archives += ['RRA:AVERAGE:0.5: %d:%d' %(_steps(archives[i]["resolution"], step), _rows(42 rrd_archives += ['RRA:AVERAGE:0.5:{:d}:{:d}'.format(_steps(archives[i]["resolution"], step), _rows( 43 43 archives[i]["duration"], archives[i]["resolution"], step))] 44 44 … … 56 56 rrdtool.update(rrdfile, value_string) 57 57 except: 58 print "Failed to update rrd database %s with values\n %s" % (rrdfile, value_string)58 print('Failed to update rrd database {} with values\n {}'.format(rrdfile, value_string)) 59 59 print(traceback.format_exc()) 60 60
Note:
See TracChangeset
for help on using the changeset viewer.
