diff options
author | tv <tv@nomic.retiolum> | 2013-04-04 16:40:24 +0200 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-04-04 16:40:24 +0200 |
commit | f6dfecb5faf564b11a3c9bdfcaecab3f60b26a14 (patch) | |
tree | 9685eb00d8f827adaeb5b7b30389957068429da8 /util | |
parent | fcbbb6d3691ef67fc7845212f09e064634cf49f1 (diff) | |
parent | 35acaff77b9495fc7f10dd4312e2173de21d26ca (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'util')
-rwxr-xr-x | util/bin/graphitec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/bin/graphitec b/util/bin/graphitec index b9f09e3d..52aa9834 100755 --- a/util/bin/graphitec +++ b/util/bin/graphitec @@ -1,4 +1,5 @@ #!/bin/sh H=${GRAPHITE_HOST:-localhost} P=${GRAPHITE_PORT:-2003} -printf "%s %s\r\n" $1 $2 | nc -u $H $P +curr=$(date '+%s') +printf "%s %s %s\n" $1 $2 $curr | nc -q0 $H $P |