diff options
Diffstat (limited to 'make-table')
-rwxr-xr-x | make-table | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/make-table b/make-table new file mode 100755 index 00000000..ca08748b --- /dev/null +++ b/make-table @@ -0,0 +1,17 @@ +#!/bin/env python +import sys +import common + +data_lavg = common.load_data_from_file(sys.argv[1]) +data_place = common.load_data_from_file(sys.argv[2]) + +print('''| AWS Region | Avg Latency | Least |''') +print('''| - | - | - |''') +for k, v in data_lavg.items(): + place = data_place.get(k, 0.0) + if place: + place = '%.0lf' % place + else: + place = "" + + print('| %s | %.3lf | %s |' % (k, v, place)) |