~free.ekanayaka/landscape-client/lucid-1.5.4-0ubuntu0.10.04.0

« back to all changes in this revision

Viewing changes to landscape/monitor/temperature.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-06-28 18:07:18 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100628180718-vytyqgbtkiirv5sb
Tags: 1.5.2.1-0ubuntu0.10.04.0
Filter duplicate network interfaces in get_active_interfaces (LP: #597000)

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