VirtualBox

Changeset 77978 in vbox for trunk


Ignore:
Timestamp:
Apr 1, 2019 1:07:25 PM (6 years ago)
Author:
vboxsync
Message:

vboxshell.py: In the python webservice bindings IMachine.lastStateChange is of type VirtualBox_wrappers.Long, so it needs to be explicitly converted to int before using.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r76553 r77978  
    10061006    print("  Keyboard [keyboardHIDType]: %s (%s)" % (asEnumElem(ctx, "KeyboardHIDType", mach.keyboardHIDType), mach.keyboardHIDType))
    10071007    print("  Pointing device [pointingHIDType]: %s (%s)" % (asEnumElem(ctx, "PointingHIDType", mach.pointingHIDType), mach.pointingHIDType))
    1008     print("  Last changed [n/a]: " + time.asctime(time.localtime(mach.lastStateChange/1000)))
     1008    print("  Last changed [n/a]: " + time.asctime(time.localtime(int(mach.lastStateChange)/1000)))
    10091009    # OSE has no VRDE
    10101010    try:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette