summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xutil/bin/graphitec3
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