Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
97ad1206
Commit
97ad1206
authored
Aug 09, 2012
by
Jelte Jansen
Browse files
[2172] minor cleanup
parent
0336d2de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/sysinfo/tests/sysinfo_test.py
View file @
97ad1206
...
...
@@ -143,7 +143,6 @@ def _my_bsd_subprocess_check_output(command):
def
_my_openbsd_subprocess_check_output
(
command
):
assert
type
(
command
)
==
list
,
'command argument is not a list'
bsd_output
=
_my_bsd_subprocess_check_output
(
command
)
if
command
==
[
'sysctl'
,
'-n'
,
'kern.boottime'
]:
return
bytes
(
str
(
int
(
time
.
time
()
-
76632
)),
'utf-8'
)
elif
command
==
[
'sysctl'
,
'-n'
,
'vm.loadavg'
]:
...
...
@@ -155,6 +154,7 @@ def _my_openbsd_subprocess_check_output(command):
elif
command
==
[
'route'
,
'-n'
,
'show'
]:
return
b
'XfizswwNA9NkXz6K36ZExpjV08Y5IXkHI8jjDSV+5Nc=
\n
'
else
:
bsd_output
=
_my_bsd_subprocess_check_output
(
command
)
if
bsd_output
is
not
None
:
return
bsd_output
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment