Commits

Ralph Bean committed 83295a6

Sample data

Comments (0)

Files changed (10)

 include README.rst
-recursive-include tw2/rrd/templates *
-recursive-include tw2/rrd/static *
+recursive-include tw2/rrd/data *

tw2/rrd/data/cpu_aidle.rrd

Binary file added.

tw2/rrd/data/cpu_idle.rrd

Binary file added.

tw2/rrd/data/cpu_nice.rrd

Binary file added.

tw2/rrd/data/cpu_num.rrd

Binary file added.

tw2/rrd/data/cpu_speed.rrd

Binary file added.

tw2/rrd/data/cpu_system.rrd

Binary file added.

tw2/rrd/data/cpu_user.rrd

Binary file added.

tw2/rrd/data/cpu_wio.rrd

Binary file added.

tw2/rrd/samples.py

 import tw2.rrd
 
+data_directory = '/'.join(__file__.split('/')[:-1]) + '/data'
 class DemoRRDFlotWidget(tw2.rrd.RRDFlotWidget):
-    rrd_filename = '/home/rjbpop/devel/rc.report/data/rrds/rrds' + \
-            '/Servers/brodie.rc.rit.edu/cpu_user.rrd'
+    rrd_filenames = [
+        data_directory + '/cpu_user.rrd',
+        data_directory + '/cpu_system.rrd',
+        data_directory + '/cpu_wio.rrd',
+    ]