~free.ekanayaka/landscape-client/karmic-1.5.4-0ubuntu0.9.10.0

« back to all changes in this revision

Viewing changes to landscape/monitor/computeruptime.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-g9l55c9c5bnch03b
Tags: 1.5.2.1-0ubuntu0.9.10.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
import struct
5
5
 
6
6
from landscape.lib.timestamp import to_timestamp
7
 
from landscape.monitor.monitor import MonitorPlugin
 
7
from landscape.monitor.plugin import MonitorPlugin
8
8
 
9
9
 
10
10
def get_uptime(uptime_file=u"/proc/uptime"):
133
133
        """
134
134
        broker = self.registry.broker
135
135
        if self._first_run:
136
 
            self_first_run = False
137
136
            filename = self._wtmp_file + ".1"
138
137
            if os.path.isfile(filename):
139
138
                broker.call_if_accepted("computer-uptime",