mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
examples: Fix balloon event callback
This commit is contained in:
parent
8b32c80df0
commit
d648b05678
@ -490,7 +490,7 @@ def myDomainEventPMWakeupCallback(conn, dom, reason, opaque):
|
|||||||
def myDomainEventPMSuspendCallback(conn, dom, reason, opaque):
|
def myDomainEventPMSuspendCallback(conn, dom, reason, opaque):
|
||||||
print "myDomainEventPMSuspendCallback: Domain %s(%s) system pmsuspend" % (
|
print "myDomainEventPMSuspendCallback: Domain %s(%s) system pmsuspend" % (
|
||||||
dom.name(), dom.ID())
|
dom.name(), dom.ID())
|
||||||
def myDomainEventBalloonChangeCallback(conn, dom, utcoffset, actual):
|
def myDomainEventBalloonChangeCallback(conn, dom, actual, opaque):
|
||||||
print "myDomainEventBalloonChangeCallback: Domain %s(%s) %d" % (dom.name(), dom.ID(), actual)
|
print "myDomainEventBalloonChangeCallback: Domain %s(%s) %d" % (dom.name(), dom.ID(), actual)
|
||||||
def myDomainEventPMSuspendDiskCallback(conn, dom, reason, opaque):
|
def myDomainEventPMSuspendDiskCallback(conn, dom, reason, opaque):
|
||||||
print "myDomainEventPMSuspendDiskCallback: Domain %s(%s) system pmsuspend_disk" % (
|
print "myDomainEventPMSuspendDiskCallback: Domain %s(%s) system pmsuspend_disk" % (
|
||||||
|
Loading…
Reference in New Issue
Block a user