diff options
Diffstat (limited to 'src/examples/rrdMatrixFlot.html')
-rw-r--r-- | src/examples/rrdMatrixFlot.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/rrdMatrixFlot.html b/src/examples/rrdMatrixFlot.html index 0f61b07..66b3b17 100644 --- a/src/examples/rrdMatrixFlot.html +++ b/src/examples/rrdMatrixFlot.html @@ -81,6 +81,10 @@ // and performs the update of the Web page function update_fname_handler(bf,idx) { var i_rrd_data=undefined; + if (bf.getLength()<1) { + alert("File at idx "+idx+" is empty (possibly loading failed)!"); + return 1; + } try { var i_rrd_data=new RRDFile(bf); } catch(err) { |