From 8501f32d8f67fd53bbc682ba9bfadd0ce5f39345 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Mon, 8 Aug 2011 00:52:07 +0100 Subject: Add a transformer option to allow operations on the data from RRD files - eg Network octets * 8 > bits --- docs/examples/jarmon_example_recipes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/jarmon_example_recipes.js') diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js index a2e822e..aa42d6f 100644 --- a/docs/examples/jarmon_example_recipes.js +++ b/docs/examples/jarmon_example_recipes.js @@ -54,8 +54,8 @@ jarmon.CHART_RECIPES_COLLECTD = { 'interface': { title: 'Wlan0 Throughput', data: [ - ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'B/s'], - ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'B/s'] + ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'bit/s', function (v) { return v*8; }], + ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'bit/s', function (v) { return v*8; }] ], options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) } -- cgit v1.2.3