From 21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Thu, 10 Nov 2011 18:04:39 -0500 Subject: initial commit to suse branch: eclipse integration --- opensuse/core/tdebase/ksysguard-slp-ratelimit.diff | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 opensuse/core/tdebase/ksysguard-slp-ratelimit.diff (limited to 'opensuse/core/tdebase/ksysguard-slp-ratelimit.diff') diff --git a/opensuse/core/tdebase/ksysguard-slp-ratelimit.diff b/opensuse/core/tdebase/ksysguard-slp-ratelimit.diff new file mode 100644 index 000000000..7859ed096 --- /dev/null +++ b/opensuse/core/tdebase/ksysguard-slp-ratelimit.diff @@ -0,0 +1,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 + } + -- cgit v1.2.1