[tahoe-lafs-trac-stream] [tahoe-lafs] #1391: The tahoe_files munin plugins reports an incorrect file count
tahoe-lafs
trac at tahoe-lafs.org
Wed Apr 13 01:39:51 PDT 2011
#1391: The tahoe_files munin plugins reports an incorrect file count
--------------------------------+--------------------------
Reporter: francois | Owner: francois
Type: defect | Status: new
Priority: minor | Milestone: 1.9.0
Component: contrib | Version: 1.8.2
Keywords: munin, tahoe_files | Launchpad Bug:
--------------------------------+--------------------------
This plugin currently incorrectly reports the number of files located
under ''basedir/storage/shares'' instead of the number of files located
inside each sub-directories.
The current code is:
{{{
for nodename, basedir in nodedirs:
files = len(os.listdir(os.path.join(basedir, "storage", "shares")))
if os.path.exists(os.path.join(basedir, "storage", "shares",
"incoming")):
files -= 1 # the 'incoming' directory doesn't count
print "%s.value %d" % (nodename, files)
}}}
--
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1391>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list