JoaoJandre commented on code in PR #10900:
URL: https://github.com/apache/cloudstack/pull/10900#discussion_r2310678433


##########
ui/src/components/view/StatsTab.vue:
##########
@@ -371,6 +386,15 @@ export default {
         return
       }
       this.fetchData()
+    },
+    refreshTime: function () {
+      this.fetchData()
+      if (this.refreshTime === '0') return 
window.clearInterval(this.refreshIntervalId)
+
+      window.clearInterval(this.refreshIntervalId)
+      this.refreshIntervalId = window.setInterval(() => {
+        this.fetchData()

Review Comment:
   the start and end dates should be updated before refreshing the data, 
otherwise we are refreshing the same data everytime.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to