LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ksysguard-slp-ratelimit.diff of Package kdebase3 (Project openSUSE:Factory)

--- 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
 }