Skip to content
This repository has been archived by the owner on Sep 16, 2018. It is now read-only.

Commit

Permalink
Fixing broken hostnames in pingerd
Browse files Browse the repository at this point in the history
  • Loading branch information
ventris committed Nov 20, 2016
1 parent 64f6b84 commit 46aeda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pinger/pingerd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def main(port, interval):
# TODO(bluecmd): Make this an iterator
while True:
ip, timestamp, secs, usecs = dhmonpinger.receive(sockfd)
icmp_rtt.labels({'host': hosts[ip]}).observe(
icmp_rtt.labels(hosts[ip]).observe(
float(secs*1000000 + usecs)/10**6)

if __name__ == '__main__':
Expand Down

1 comment on commit 46aeda1

@bluecmd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix.

Please sign in to comment.