From cc402ea88a72441fe1978e3bc6bcffa2279030ef Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 8 Dec 2014 07:45:34 +0100 Subject: Properly canonicalize name So the reported value matches the config value --- pellematic-draft | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pellematic-draft') diff --git a/pellematic-draft b/pellematic-draft index 551b75b..45a2288 100755 --- a/pellematic-draft +++ b/pellematic-draft @@ -128,13 +128,13 @@ def fetch_values(url): for item in out: name = get_name(item) if name: - print "%s.value %.2f" % (name, + print "%s.value %.2f" % (canon(name), calc(item)) def main(args): if not url: - print >>sys.stderr, "No url configured" + print >>sys.stderr, "No ip address configured" return 1 if len(args) > 1: if args[1] in [ 'autoconf', 'detect' ]: -- cgit v1.2.3