commit | fdc160531919fc660d51b9aa036a591273bd331f | [log] [tgz] |
---|---|---|
author | Mark De Ruyter <markdr@google.com> | Mon Mar 11 13:55:06 2019 -0700 |
committer | Mark De Ruyter <markdr@google.com> | Tue Mar 12 12:30:09 2019 -0700 |
tree | 5b0597e68b56b6a0ed82990bae914b2d27f54d6f | |
parent | 7f4b770c6e9698aadf631fbc53cc2f6c224149c8 [diff] |
Modified get_ping_results to return a PingResult object. This object is backwards compatible with the previous return types of this function. For instance: >>> result = get_ping_stats(ad, '127.0.0.1', 1, .25, 64) >>> # New syntax >>> result.rtts[0] 0.591 >>> # Old syntax still works >>> asdf['rtt'][0] 0.591 Bug: None Test: Tested locally Change-Id: I93de52f842876af334199f1be3ad45c9f1c64188