summaryrefslogtreecommitdiffstats
path: root/util/bin/graphitec
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-03-28 21:48:21 -0400
committermakefu <root@pigstarter.de>2013-03-28 21:48:21 -0400
commit6d4437f1b498b97efb3bf13669cfc162e5ba642c (patch)
treef959446a82031f0643bf3d854089dd49194ad15d /util/bin/graphitec
parentb33dd6fed4cd9da07e715666de9766e071381996 (diff)
add working graphite client
Diffstat (limited to 'util/bin/graphitec')
-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