You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/opensuse/tdebase/ksysguard-slp-ratelimit.diff

16 lines
214 B

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