From 03e678b8e3b643a29afcb0432dbe7ab3d4fcd78f Mon Sep 17 00:00:00 2001 From: David Timber Date: Thu, 14 Nov 2024 04:57:20 +0100 Subject: Initial commit --- make-table | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 make-table (limited to 'make-table') 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)) -- cgit