From 472f5430e7c2092a9490fa340e69c38d18a6d333 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Tue, 5 Feb 2013 17:32:46 +0000 Subject: [PATCH] avoid high cpu usage on FritzBox git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2650 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/73_PRESENCE.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/73_PRESENCE.pm b/FHEM/73_PRESENCE.pm index 3b3ebc3f2..397c97030 100755 --- a/FHEM/73_PRESENCE.pm +++ b/FHEM/73_PRESENCE.pm @@ -31,7 +31,7 @@ use strict; use warnings; use Blocking; use Net::Ping; -use Time::HiRes qw(gettimeofday); +use Time::HiRes qw(gettimeofday sleep); use DevIo; @@ -411,6 +411,7 @@ PRESENCE_DoLocalFritzBoxScan($) } $number++; + sleep 0.1; } chomp $status;