From 0d8bba263dc195147d6fdb09662e7926f0a58b3e Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 2 Apr 2015 19:24:45 +0200 Subject: Bump lots of changes --- tools/make_dummy_placement.sh | 4 ++-- tools/ping-graph.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') 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"; -- cgit v1.2.3