aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-04-02 19:24:45 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-04-02 19:24:45 +0200
commit0d8bba263dc195147d6fdb09662e7926f0a58b3e (patch)
tree4c570b4376c323e585120e7695b8715be7aa8881 /tools
parente4354b47bd8891c5b1ee591fdf74b3ca67eee461 (diff)
Bump lots of changes
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make_dummy_placement.sh4
-rwxr-xr-xtools/ping-graph.pl2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/make_dummy_placement.sh b/tools/make_dummy_placement.sh
index 7f93be9..8a2a831 100755
--- a/tools/make_dummy_placement.sh
+++ b/tools/make_dummy_placement.sh
@@ -3,7 +3,7 @@
for a in $* ; do
X=$(( $RANDOM % 500 ))
Y=$(( $RANDOM % 500 ))
-X1=$(( $X + 150 ))
-Y1=$(( $Y + 20 ))
+X1=$(( $X + 20 ))
+Y1=$(( $Y + 130 ))
echo "insert into placements select switch, box '(($X,$Y),($X1,$Y1))' from switches where sysname = '$a';"
done
diff --git a/tools/ping-graph.pl b/tools/ping-graph.pl
index 44b8250..2cd6996 100755
--- a/tools/ping-graph.pl
+++ b/tools/ping-graph.pl
@@ -17,7 +17,7 @@ BEGIN {
my $dbh = db_connect();
my $switches = $dbh->selectall_hashref('SELECT sysname,switch FROM switches ORDER BY sysname', 'sysname');
-if (0) {
+if (1) {
my %switchfds = ();
while (my ($sysname, $switch) = each %$switches) {
print "$sysname -> $switch->{switch}\n";