aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/022-tpcc-grouped
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/022-tpcc-grouped')
-rw-r--r--research/experiments/022-tpcc-grouped/tables.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/research/experiments/022-tpcc-grouped/tables.py b/research/experiments/022-tpcc-grouped/tables.py
index 2c018b0..fcfd468 100644
--- a/research/experiments/022-tpcc-grouped/tables.py
+++ b/research/experiments/022-tpcc-grouped/tables.py
@@ -69,5 +69,6 @@ def table(name, device):
print()
-for name in sys.argv[1:] or ['ram-w1', 'ram-w4', 'sd-w1-*', 'sd-w4-*']:
- table(name, name.startswith('sd'))
+if __name__ == '__main__':
+ for name in sys.argv[1:] or ['ram-w1', 'ram-w4', 'sd-w1-*', 'sd-w4-*']:
+ table(name, name.startswith('sd'))