summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-11 15:46:25 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-11 15:46:25 +0000
commitf702e862fedd69d710b9a31277cb63fe42fd8ceb (patch)
tree386479a7927f945518a4ad28d303f4537348f1bc
parent96141f01986bff1a409ff14bdbedc83583ffde04 (diff)
downloadmgaonline-f702e862fedd69d710b9a31277cb63fe42fd8ceb.tar
mgaonline-f702e862fedd69d710b9a31277cb63fe42fd8ceb.tar.gz
mgaonline-f702e862fedd69d710b9a31277cb63fe42fd8ceb.tar.bz2
mgaonline-f702e862fedd69d710b9a31277cb63fe42fd8ceb.tar.xz
mgaonline-f702e862fedd69d710b9a31277cb63fe42fd8ceb.zip
be nicer with CPU (more efficient system power usage) though using
Glib::Timeout->add_seconds() instead of Glib::Timeout->add()
-rwxr-xr-xmdkapplet4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index ef1813c7..c4d91b18 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -238,7 +238,7 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('delayed');
-Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub {
+Glib::Timeout->add_seconds($config{FIRST_CHECK_DELAY}/1000, sub {
# schedule future checks:
setup_cyclic_check();
# perform a test after initial delay:
@@ -543,7 +543,7 @@ sub okState() { log::explanations(N_("System is up-to-date\n")); go2State('okay'
sub setup_cyclic_check() {
$network_timeout = Glib::Timeout->add(2000, sub { checkNetwork(); 1 });
- $timeout = Glib::Timeout->add($config{UPDATE_FREQUENCY}*1000, sub {
+ $timeout = Glib::Timeout->add_seconds($config{UPDATE_FREQUENCY}, sub {
checkUpdates();
1;
});