From 5fe09a199b6342dd67c952aadeeff46583c456a5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 10 Jun 2012 18:34:54 +0000 Subject: [PATCH] [packages] collectd: fix iwinfo station count (#11639) SVN-Revision: 32167 --- utils/collectd/Makefile | 2 +- utils/collectd/patches/900-add-iwinfo-plugin.patch | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 5a2176119c..eac9b2acaa 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=collectd PKG_VERSION:=4.10.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://collectd.org/files/ diff --git a/utils/collectd/patches/900-add-iwinfo-plugin.patch b/utils/collectd/patches/900-add-iwinfo-plugin.patch index 40618f0a67..98945863c1 100644 --- a/utils/collectd/patches/900-add-iwinfo-plugin.patch +++ b/utils/collectd/patches/900-add-iwinfo-plugin.patch @@ -97,7 +97,7 @@ The I plugin makes it possible to write extensions for collectd in Java. --- /dev/null +++ b/src/iwinfo.c -@@ -0,0 +1,149 @@ +@@ -0,0 +1,150 @@ +/** + * collectd - src/iwinfo.c + * Copyright (C) 2011 Jo-Philipp Wich @@ -198,7 +198,8 @@ + + if (iw->assoclist(ifname, buf, &val)) + val = 0; -+ iwinfo_submit(ifname, "stations", val); ++ iwinfo_submit(ifname, "stations", ++ val / sizeof(struct iwinfo_assoclist_entry)); + } + + iwinfo_finish(); -- 2.30.2