aboutsummaryrefslogtreecommitdiffstats
path: root/include/nms/util.pm
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-21 16:35:14 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-21 16:35:14 +0100
commit59a5c80ab0e6043d9ce2ddc83d626a49438b9433 (patch)
tree08cb022fe177b1c65cd76826d38ba54678ef9431 /include/nms/util.pm
parent329750a54d5a04355a787128f4e5bd4a21e4a3d6 (diff)
parentbe1d1a2ad44bc30993cfda339552b924f5018d72 (diff)
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'include/nms/util.pm')
-rw-r--r--include/nms/util.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/nms/util.pm b/include/nms/util.pm
index 79598d7..d063bf2 100644
--- a/include/nms/util.pm
+++ b/include/nms/util.pm
@@ -114,7 +114,13 @@ sub guess_placement {
$y = int(759 + 20.5 * $s);
$xx = $x + 65;
$yy = $y + 14;
-
+ } elsif ($name =~ /^distro(\d)/) {
+ my $d = ($1);
+ $src = "distro";
+ $x = 292 + $d * 165;
+ $y = 415;
+ $xx = $x + 130;
+ $yy = $y + 20;
} else {
# Fallback to have _some_ position
$src = "random";