From 56b8b090d8f37db46f686b7dd8a9d4f8a72c9fd2 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Fri, 13 Feb 2009 03:36:35 +0000 Subject: rrdFile.getDS now checks the type, so I must make sure ds_idx is a number --- src/examples/rrdContent.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/examples/rrdContent.html') diff --git a/src/examples/rrdContent.html b/src/examples/rrdContent.html index 0de5d66..ca77147 100644 --- a/src/examples/rrdContent.html +++ b/src/examples/rrdContent.html @@ -107,7 +107,7 @@ // This function updates the Web Page with the data from the RRD archive function element_update() { oSelDS=document.getElementById("select_ds"); - ds_idx=oSelDS.options[oSelDS.selectedIndex].value; + ds_idx=Math.round(oSelDS.options[oSelDS.selectedIndex].value); oSelRRA=document.getElementById("select_rra"); rra_idx=oSelRRA.options[oSelRRA.selectedIndex].value; -- cgit v1.2.3-2-g168b