Traffic graph update improvement.
Ylian Saint-Hilaire committed
May 7, 2021 at 00:47 UTC
8a3c47fd3271ebeb43951c8c8052764670ca633a
1 file changed
+4
-1
views/default.handlebars
+4
-1
@@ -14434,7 +14434,10 @@
14434
serverTimelineConfig.data.datasets[1].data.push({ x: stats.time, y: stats.mem.heapUsed / (1024 * 1024) });
14435
serverTimelineConfig.data.datasets[2].data.push({ x: stats.time, y: stats.mem.heapTotal / (1024 * 1024) });
14436
serverTimelineConfig.data.datasets[3].data.push({ x: stats.time, y: stats.mem.rss / (1024 * 1024) });
14437
- } /* else if (chartType == 2) {
14437
+ } else if ((chartType == 3) || (chartType == 4)) {
14438
+ updateServerTimelineStats();
14439
+ }
14440
+ /* else if (chartType == 2) {
14441
serverTimelineConfig.data.datasets[0].data.push({ x: stats.time, y: stats.db.meshes });
14442
serverTimelineConfig.data.datasets[1].data.push({ x: stats.time, y: stats.db.nodes });
14443
serverTimelineConfig.data.datasets[2].data.push({ x: stats.time, y: stats.db.users });