From 0444ab4658743504ddf12ddf911158aebf9037ae Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Tue, 30 Aug 2022 10:29:09 +0300
Subject: upd power, dynamic

---
 src/views/_sila/Processors/Dynamic/CpuPower.vue | 7 +++++++
 1 file changed, 7 insertions(+)

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

diff --git a/src/views/_sila/Processors/Dynamic/CpuPower.vue b/src/views/_sila/Processors/Dynamic/CpuPower.vue
index 693c161d..79cd33b4 100644
--- a/src/views/_sila/Processors/Dynamic/CpuPower.vue
+++ b/src/views/_sila/Processors/Dynamic/CpuPower.vue
@@ -145,6 +145,13 @@ export default {
     },
   },
   watch: {
+    limits() {
+      if (this.limits && this.limits.length > 0) {
+        this.warning = this.warningLimit;
+        this.critical = this.criticalLimit;
+      }
+    },
+
     timeScale() {
       if (!this.opened) {
         return;
-- 
cgit v1.2.3

