Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Update xenmon.py #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/xenmon/xenmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def show_livestats(cpu):
# simple functions to allow initialization of log files without actually
# physically creating files that are never used; only on the first real
# write does the file get created
class Delayed(file):
class Delayed:
def __init__(self, filename, mode):
self.filename = filename
self.saved_mode = mode
Expand Down Expand Up @@ -675,8 +675,8 @@ def main():

if os.uname()[0] == "SunOS":
xenbaked_cmd = "/usr/lib/xenbaked"
stop_cmd = "/usr/bin/pkill -INT -z global xenbaked"
kill_cmd = "/usr/bin/pkill -KILL -z global xenbaked"
stop_cmd = "/usr/bin/pkill -INT -z global xenbaked"
kill_cmd = "/usr/bin/pkill -KILL -z global xenbaked"
else:
# assumes that xenbaked is in your path
xenbaked_cmd = "xenbaked"
Expand Down