aboutsummaryrefslogtreecommitdiffstats
path: root/gg_map/gg_map.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-12 04:00:25 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-12 04:00:25 +0100
commite392f0b07aacbb1cc5420cd2f24c0c915bd0b5d2 (patch)
treeb4755f9a31e40ec38a4da44e3ab5c33e1dc9747d /gg_map/gg_map.c
parentbetter egraph blob size (diff)
downloadglouglou-e392f0b07aacbb1cc5420cd2f24c0c915bd0b5d2.tar.xz
glouglou-e392f0b07aacbb1cc5420cd2f24c0c915bd0b5d2.zip
do not use id=1 for coloration of egraph blobs
Diffstat (limited to 'gg_map/gg_map.c')
-rw-r--r--gg_map/gg_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c
index 516546e..6da39de 100644
--- a/gg_map/gg_map.c
+++ b/gg_map/gg_map.c
@@ -114,7 +114,7 @@ _conn_data(int id, u_int8_t pktsize) {
tmp = a; a = b; b = tmp;
}
size = sqrt(size) / 2;
- color = (id * 0x98765400) % 0xFFFFFF00;
+ color = ((id+1) * 0x98765400) % 0xFFFFFF00;
egraph_vertice_send_blob(_egraph, a, b, size, color);
}