From 32453c4cab3f88949a029b2d9c8b50ca7ac683bc Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Wed, 27 Jul 2022 16:29:34 +0300
Subject: upd store logic, dynamic

---
 src/views/_sila/Processors/Dynamic/CpuTemp.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/views/_sila/Processors/Dynamic/CpuTemp.vue')

diff --git a/src/views/_sila/Processors/Dynamic/CpuTemp.vue b/src/views/_sila/Processors/Dynamic/CpuTemp.vue
index 2f69a5a5..1da00e70 100644
--- a/src/views/_sila/Processors/Dynamic/CpuTemp.vue
+++ b/src/views/_sila/Processors/Dynamic/CpuTemp.vue
@@ -148,7 +148,9 @@ export default {
     },
 
     allSensors() {
-      return this.$store.getters['processors/cpuTemp'];
+      return this.timeScale === 'hour'
+        ? this.$store.getters['processors/cpuTempLastHour']
+        : this.$store.getters['processors/cpuTemp'];
     },
 
     filteredSensors() {
-- 
cgit v1.2.3

