[Bugs] #756 HIGH: shell consumes lots of cpu on XO
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Thu Apr 16 05:41:15 EDT 2009
#756: shell consumes lots of cpu on XO
----------------------------+-----------------------------------------------
Reporter: tomeu | Owner: tomeu
Type: defect | Status: new
Priority: High | Milestone: 0.84
Component: sugar | Version: Git as of bugdate
Severity: Major | Resolution:
Keywords: | Distribution: Unspecified
Status_field: Unconfirmed |
----------------------------+-----------------------------------------------
Comment(by tomeu):
This will make it stop updating the connections file every few seconds:
{{{
diff --git a/src/jarabe/model/network.py b/src/jarabe/model/network.py
index 6d2f400..39c71e8 100644
--- a/src/jarabe/model/network.py
+++ b/src/jarabe/model/network.py
@@ -215,9 +215,10 @@ class NMSettingsConnection(dbus.service.Object):
self._secrets = secrets
def set_connected(self):
- self._settings.connection.autoconnect = True
- self._settings.connection.timestamp = int(time.time())
- self.save()
+ if not self._settings.connection.autoconnect:
+ self._settings.connection.autoconnect = True
+ self._settings.connection.timestamp = int(time.time())
+ self.save()
def set_secrets(self, secrets):
self._secrets = secrets
}}}
But it's still doing too much work. I guess it's updating widgets even
when nothing changed.
--
Ticket URL: <http://dev.sugarlabs.org/ticket/756#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list