diff options
Diffstat (limited to 'src/examples/rrdJFlotSimple.html')
-rw-r--r-- | src/examples/rrdJFlotSimple.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/rrdJFlotSimple.html b/src/examples/rrdJFlotSimple.html index 4240f70..81645c4 100644 --- a/src/examples/rrdJFlotSimple.html +++ b/src/examples/rrdJFlotSimple.html @@ -108,6 +108,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) { |