VirtualBox

Changeset 12717 in vbox for trunk/src


Ignore:
Timestamp:
Sep 25, 2008 10:53:22 AM (16 years ago)
Author:
vboxsync
Message:

PerfAPI: Fixed python wrappers and samples to handle perf data correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/sample/shellcommon.py

    r12689 r12717  
    8686    rc = progress.resultCode
    8787    print "Completed:", completed, "rc:",rc
    88     if rc == 0:
     88    if int(rc) == 0:
    8989        vb.performanceCollector.setupMetrics(['*'], [mach], 10, 15)
    9090    session.close()
     
    105105        valsStr = '[ '
    106106        for j in range(0, lens[i]):
    107             valsStr += str(vals[idxs[i]])+' '
     107            valsStr += str(vals[int(idxs[i])+j])+' '
    108108        valsStr += ']'
    109109        print names[i],valsStr
     
    294294       valsStr = '[ '
    295295       for j in range(0, lens[i]):
    296            valsStr += str(vals[idxs[i]])+' '
     296           valsStr += str(vals[int(idxs[i])+j])+' '
    297297       valsStr += ']'
    298298       print names[i],valsStr
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