summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdebase/ksysguard-slp-ratelimit.diff
blob: 7859ed09626ae92bdc62183477c4638a6087ed3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ksysguard/gui/ksysguard.cc
+++ ksysguard/gui/ksysguard.cc
@@ -407,7 +407,11 @@
   }
 
 #if HAVE_SLP
-  rescanSLP();
+  static int rate;
+  if (++rate > 100) {
+    rate = 0;
+    rescanSLP();
+  }
 #endif
 }