diff options
author | christos <christos@pkgsrc.org> | 2013-04-05 18:20:08 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2013-04-05 18:20:08 +0000 |
commit | 9b2d3481cb403cf6b70c83c1b971b99375aba2bf (patch) | |
tree | 4691afdbd0afc03330660cf2e9757deca7fb5ffa /net/net-snmp/patches | |
parent | 4b434caedd12274324d84ede4309d56ddc677d86 (diff) | |
download | pkgsrc-9b2d3481cb403cf6b70c83c1b971b99375aba2bf.tar.gz |
welcome to pl2.
- support for multi-cpu state reporting
- fix bug with storage calculation (use frsize instead bsize)
Diffstat (limited to 'net/net-snmp/patches')
-rw-r--r-- | net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c b/net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c new file mode 100644 index 00000000000..8da5ac961fb --- /dev/null +++ b/net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c @@ -0,0 +1,13 @@ +$NetBSD: patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c,v 1.1 2013/04/05 18:20:08 christos Exp $ + +--- agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig 2013-04-05 13:53:53.000000000 -0400 ++++ agent/mibgroup/hardware/fsys/fsys_getfsstats.c 2013-04-05 13:54:19.000000000 -0400 +@@ -154,7 +154,7 @@ + entry->path[sizeof(entry->path)-1] = '\0'; + strlcpy( entry->device, stats[i].f_mntfromname, sizeof(entry->device)); + entry->device[sizeof(entry->device)-1] = '\0'; +- entry->units = stats[i].f_bsize; /* or f_frsize */ ++ entry->units = stats[i].f_frsize; + entry->size = stats[i].f_blocks; + entry->used = (stats[i].f_blocks - stats[i].f_bfree); + /* entry->avail is currently unsigned, so protect against negative |