commit f89b1143006e29d56a4dfac6cda4336b4b309792 Author: W. David Ashley w.david.ashley@gmail.com Date: Fri Jul 10 10:10:37 2015 -0500
Domains chapter - corrected example 31
en-US/extras/Domains-Example-31.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) --- diff --git a/en-US/extras/Domains-Example-31.py b/en-US/extras/Domains-Example-31.py index 96ac2e5..b845eac 100644 --- a/en-US/extras/Domains-Example-31.py +++ b/en-US/extras/Domains-Example-31.py @@ -16,11 +16,11 @@ if dom == None: exit(1)
rd_req, rd_bytes, wr_req, wr_bytes, err = dom.blockStats('/path/to/linux-0.2.img') -print('Read requests issued: '+rd_req) -print('Bytes read: '+rd_bytes) -print('Write requests issued: '+wr_req) -print('Bytes written: '+wr_bytes) -print('Number of errors: '+err) +print('Read requests issued: '+str(rd_req)) +print('Bytes read: '+str(rd_bytes)) +print('Write requests issued: '+str(wr_req)) +print('Bytes written: '+str(wr_bytes)) +print('Number of errors: '+str(err))
conn.close() exit(0)
docs-commits@lists.fedoraproject.org