aboutsummaryrefslogtreecommitdiffstats
path: root/gg_map/gg_map.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-11 21:31:57 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-11 21:31:57 +0100
commit2dac45210dfc47f9cf762cb18fc7433794e6590e (patch)
tree5b09e3c13e35b85c3e2baca9f41f459e8904142a /gg_map/gg_map.c
parentfix new connections encoding, they should never be responses (diff)
downloadglouglou-2dac45210dfc47f9cf762cb18fc7433794e6590e.tar.xz
glouglou-2dac45210dfc47f9cf762cb18fc7433794e6590e.zip
better egraph blob size
Diffstat (limited to '')
-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 7a08b28..516546e 100644
--- a/gg_map/gg_map.c
+++ b/gg_map/gg_map.c
@@ -113,7 +113,7 @@ _conn_data(int id, u_int8_t pktsize) {
if (response) {
tmp = a; a = b; b = tmp;
}
- size = log(size) * 2;
+ size = sqrt(size) / 2;
color = (id * 0x98765400) % 0xFFFFFF00;
egraph_vertice_send_blob(_egraph, a, b, size, color);
}