MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / getObjSize

Method getObjSize

plugins/Stats/StatsPlugin.py:32–36  ·  view source on GitHub ↗
(self, obj, hpy=None)

Source from the content-addressed store, hash-verified

30 return "<tr class='%s'>%s</tr>" % (class_name, "".join(back))
31
32 def getObjSize(self, obj, hpy=None):
33 if hpy:
34 return float(hpy.iso(obj).domisize) / 1024
35 else:
36 return 0
37
38 # /Stats entry point
39 @helper.encodeResponse

Callers 1

actionStatsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected