Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
realmgic committed Oct 24, 2020
1 parent 4e77213 commit 6d8dd02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion models/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ func (n *Node) parseLatencyInfo(s string) (map[string]common.Stats, map[string]c
}

func (n *Node) parseLatenciesInfo(s string) (map[string]common.Stats, map[string]common.Stats) {
log.Debugf("%s", s)
// log.Debugf("%s", s)
nodeStats := map[string]common.Stats{}
res := map[string]common.Stats{}

Expand Down
9 changes: 4 additions & 5 deletions static/js/models/latency/nodemodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,20 +386,19 @@ define(["underscore", "backbone", "poller", "config/app-config", "views/latency/
that.latencyData[attr][0].data[i].data.slice(-1)[0].x != timestampUnix) {
that.latencyData[attr][0].data[i].data.push({ x: timestampUnix, y: value, secondary: pct });
that.legend.push({ color: that.colorScale[i], title: bucket });
console.log("Latency item:" + attr + ":" + i + ":" + timestampUnix + ":" + value + ":" + pct)

console.debug("Latency item:" + attr + ":" + i + ":" + timestampUnix + ":" + value + ":" + pct)
} else {
console.log("Latency item already exists")
console.log("First item or Latency item already exists: " + timestampUnix)
}

}
if (that.latencyData[attr][1].data.length == 0 ||
that.latencyData[attr][1].data.slice(-1)[0].x != timestampUnix) {
that.latencyData[attr][1].data.push({ x: timestampUnix, y: latency[attr]["ops/sec"], secondary: "100.00%" });
that.legend.push({ color: "#333", title: "Ops/Sec" });
console.log("Latency ops :" + attr + ":" + " :" + timestampUnix + ":" + latency[attr]["ops/sec"])
console.debug("Latency ops :" + attr + ":" + " :" + timestampUnix + ":" + latency[attr]["ops/sec"])
} else {
console.log("Latency total already exists")
console.log("First item or Latency total already exists: " + timestampUnix)
}
}
},
Expand Down

0 comments on commit 6d8dd02

Please sign in to comment.