reload page in order to avoid memory leak bug of JQPlot
authorJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 23 Sep 2011 09:30:40 +0000 (09:30 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 23 Sep 2011 09:30:40 +0000 (09:30 +0000)
www/details.html

index 83a750a..3dabb65 100644 (file)
@@ -34,6 +34,12 @@ href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
                                update_chart("chart", type_to_str(data["type"]), data);
                        });
                }, 5000);
+
+               // reload page in order to workaround memory-leak in JQPlot
+               setInterval(function() {
+                       location.reload();
+               }, 60000);
+
       });
     </script>
   </head>