| 272 |
|
s = get_disk_stats(&entries) |
| 273 |
|
if s == NULL: |
| 274 |
|
raise StatgrabException, 'get_disk_stats() returned NULL' |
| 275 |
< |
list = [entries] |
| 275 |
> |
list = [] |
| 276 |
|
for i from 0 <= i < entries: |
| 277 |
|
list.append(Result( |
| 278 |
|
{'device_name': s.device_name, |
| 295 |
|
s = get_diskio_stats(&entries) |
| 296 |
|
if s == NULL: |
| 297 |
|
raise StatgrabException, 'get_diskio_stats() returned NULL' |
| 298 |
< |
list = [entries] |
| 298 |
> |
list = [] |
| 299 |
|
for i from 0 <= i < entries: |
| 300 |
|
list.append(Result( |
| 301 |
|
{'disk_name': s.disk_name, |
| 313 |
|
s = get_diskio_stats_diff(&entries) |
| 314 |
|
if s == NULL: |
| 315 |
|
raise StatgrabException, 'get_diskio_stats_diff() returned NULL' |
| 316 |
< |
list = [entries] |
| 316 |
> |
list = [] |
| 317 |
|
for i from 0 <= i < entries: |
| 318 |
|
list.append(Result( |
| 319 |
|
{'disk_name': s.disk_name, |
| 345 |
|
s = get_network_stats(&entries) |
| 346 |
|
if s == NULL: |
| 347 |
|
raise StatgrabException, 'get_network_stats() returned NULL' |
| 348 |
< |
list = [entries] |
| 348 |
> |
list = [] |
| 349 |
|
for i from 0 <= i < entries: |
| 350 |
|
list.append(Result( |
| 351 |
|
{'interface_name': s.interface_name, |
| 363 |
|
s = get_network_stats_diff(&entries) |
| 364 |
|
if s == NULL: |
| 365 |
|
raise StatgrabException, 'get_network_stats_diff() returned NULL' |
| 366 |
< |
list = [entries] |
| 366 |
> |
list = [] |
| 367 |
|
for i from 0 <= i < entries: |
| 368 |
|
list.append(Result( |
| 369 |
|
{'interface_name': s.interface_name, |
| 381 |
|
s = get_network_iface_stats(&entries) |
| 382 |
|
if s == NULL: |
| 383 |
|
raise StatgrabException, 'get_network_iface_stats() returned NULL' |
| 384 |
< |
list = [entries] |
| 384 |
> |
list = [] |
| 385 |
|
for i from 0 <= i < entries: |
| 386 |
|
list.append(Result( |
| 387 |
|
{'interface_name': s.interface_name, |