mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cleanups
This commit is contained in:
parent
6923e57b63
commit
c90b5ba2b4
3 changed files with 5 additions and 9 deletions
|
@ -145,10 +145,8 @@ function wsConnect(url, protocol) {
|
|||
plotData.push([]);
|
||||
|
||||
// add data to arrays
|
||||
for (var i = 0; i < msg.values; i++) {
|
||||
for (var i = 0; i < msg.values; i++)
|
||||
plotData[i].push([msg.timestamp, msg.data[i]]);
|
||||
console.log([msg.timestamp, msg.data[i]]);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -375,11 +375,9 @@ int hook_stats(struct path *p, struct hook *h, int when)
|
|||
|
||||
case HOOK_PRE:
|
||||
/* Exclude first message from statistics */
|
||||
if (p->received > 0) {
|
||||
double gap = time_delta(&p->ts.last, &p->ts.recv);
|
||||
|
||||
hist_put(&p->hist.gap_recv, gap);
|
||||
}
|
||||
if (p->received > 0)
|
||||
hist_put(&p->hist.gap_recv, time_delta(&p->ts.last, &p->ts.recv));
|
||||
break;
|
||||
|
||||
case HOOK_MSG: {
|
||||
struct msg *cur = pool_current(&p->pool);
|
||||
|
|
|
@ -37,7 +37,7 @@ int path_run_hook(struct path *p, enum hook_type t)
|
|||
|
||||
list_foreach(struct hook *h, &p->hooks) {
|
||||
if (h->type & t) {
|
||||
debug(22, "Running hook when=%u '%s' prio=%u ret=%d", t, h->name, h->priority, ret);
|
||||
debug(22, "Running hook when=%u '%s' prio=%u", t, h->name, h->priority);
|
||||
|
||||
ret = ((hook_cb_t) h->cb)(p, h, t);
|
||||
if (ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue