Skip to content

Commit

Permalink
Fix to work with Windows CE. Thanks to jmichiel for the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cread committed May 9, 2013
1 parent f135494 commit ff24756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecks/__init__.py
Expand Up @@ -26,7 +26,7 @@
limitations under the License.
"""

__version__ = '0.8'
__version__ = '0.9'
__author__ = 'Chris Read <chris.read@gmail.com>'

from ecks import Ecks
2 changes: 1 addition & 1 deletion ecks/plugins/uptime.py
Expand Up @@ -40,7 +40,7 @@ def get_uptime(parent, host, community):
# Got some data, let's check the OS now...
os = parent.get_os(host, community)
# If it's Windows, check the build...
if ("Windows" in os) and (int(re.search("\(Build (\d+) ", os).groups()[0]) < 7600):
if ("Windows" in os) and (int(re.search("\(Build (\d+)", os).groups()[0]) < 7600):
return int(data[0][2]) / 10
else:
return int(data[0][2])
Expand Down

0 comments on commit ff24756

Please sign in to comment.