~free.ekanayaka/landscape-client/jaunty-1.5.2.1-0ubuntu0.9.04.0

« back to all changes in this revision

Viewing changes to landscape/monitor/temperature.py

  • Committer: Free Ekanayaka
  • Date: 2010-06-16 10:01:20 UTC
  • Revision ID: free.ekanayaka@canonical.com-20100616100120-k185twz19yf1qqmh
* New upstream version (LP: #594594):
  - A new includes information about active network devices and their
    IP address in sysinfo output (LP: #272344).
  - A new plugin collects information about network traffic (#LP :284662).
  - Report information about which packages requested a reboot (LP: #538253).
  - Fix breakage on Lucid AMIs having no ramdisk (LP: #574810).
  - Migrate the inter-process communication system from DBus to Twisted AMP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
from landscape.lib.sysstats import get_thermal_zones
5
5
 
6
6
from landscape.accumulate import Accumulator
7
 
from landscape.monitor.monitor import MonitorPlugin
 
7
from landscape.monitor.plugin import MonitorPlugin
8
8
 
9
9
 
10
10
class Temperature(MonitorPlugin):
30
30
    def register(self, registry):
31
31
        super(Temperature, self).register(registry)
32
32
        if self._thermal_zones:
33
 
            self.registry = registry
34
33
            self._accumulate = Accumulator(self._persist,
35
34
                                           self.registry.step_size)
36
35