diff --git a/tmcd/tmcd.c b/tmcd/tmcd.c index 61c1706873628db18d9b15f51b87eb5d5dba2f74..b5f4f3350b245cf2e2652f12d96baba866e30fe4 100644 --- a/tmcd/tmcd.c +++ b/tmcd/tmcd.c @@ -2739,8 +2739,8 @@ COMMAND_PROTOTYPE(dolinkdelay) " i.node_id=d.node_id and i.iface=d.iface " "left join vinterfaces as v on " " v.node_id=d.node_id and v.IP=d.ip " - "where d.node_id='%s' %s", - 28, reqp->pnodeid, buf); + "where d.node_id='%s' and d.exptidx='%d' %s", + 28, reqp->pnodeid, reqp->exptidx, buf); if (!res) { error("LINKDELAY: %s: DB Error getting link delays!\n", reqp->nodeid);