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

« back to all changes in this revision

Viewing changes to landscape/monitor/processorinfo.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-m3t2ttgg8efbg19d
Tags: 1.5.2.1-0ubuntu0.9.04.0
Filter duplicate network interfaces in get_active_interfaces (LP: #597000)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
import re
4
4
 
5
5
from landscape.plugin import PluginConfigError
6
 
from landscape.monitor.monitor import MonitorPlugin
 
6
from landscape.monitor.plugin import MonitorPlugin
7
7
 
8
8
 
9
9
class ProcessorInfo(MonitorPlugin):
174
174
                        # ARM doesn't support SMP, thus no processor-id in
175
175
                        # the cpuinfo
176
176
                        current["processor-id"] = 0
177
 
                        current["model"] =  value
 
177
                        current["model"] = value
178
178
                    elif key == "Cache size":
179
179
                        current["cache-size"] = int(value)
180
180
 
185
185
 
186
186
        return processors
187
187
 
 
188
 
188
189
class SparcMessageFactory:
189
190
    """Factory for sparc-based processors provides processor information."""
190
191