From 6d4437f1b498b97efb3bf13669cfc162e5ba642c Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 28 Mar 2013 21:48:21 -0400 Subject: add working graphite client --- util/bin/graphitec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/bin/graphitec') 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 -- cgit v1.2.3