summaryrefslogtreecommitdiff
path: root/src/examples/rrdJFlotFilter.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/rrdJFlotFilter.html')
-rw-r--r--src/examples/rrdJFlotFilter.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/rrdJFlotFilter.html b/src/examples/rrdJFlotFilter.html
index c588e90..1fee276 100644
--- a/src/examples/rrdJFlotFilter.html
+++ b/src/examples/rrdJFlotFilter.html
@@ -127,6 +127,10 @@
// and performs the update of the Web page
function update_fname_handler(bf) {
var i_rrd_data=undefined;
+ if (bf.getLength()<1) {
+ alert("File "+fname+" is empty (possibly loading failed)!");
+ return 1;
+ }
try {
var i_rrd_data=new RRDFile(bf);
} catch(err) {