Trees | Indices | Help |
|
---|
|
1 ########################################################################### 2 # 3 # This program is part of Zenoss Core, an open source monitoring platform. 4 # Copyright (C) 2007, Zenoss Inc. 5 # 6 # This program is free software; you can redistribute it and/or modify it 7 # under the terms of the GNU General Public License version 2 as published by 8 # the Free Software Foundation. 9 # 10 # For complete information please visit: http://www.zenoss.com/oss/ 11 # 12 ########################################################################### 13 import Globals 14 import zope.interface 15 16 from Products.ZenUtils.Utils import convToUnits 17 18 UNAVAILABLE = 'N/A' 1921 if partial is None or total is None: 22 return None 23 if not total: 24 return None 25 return partial * 100 / total26 27 32 3335 zope.interface.implements( zope.interface.Interface ) 36 __allow_access_to_unprotected_subobjects__ = 1 377539 self.values = kw.copy()4042 return str(self.values)43 4446 return repr(self.values)47 48 51 5456 return percent(partial, total)5759 return percentString(n, decimals)60 65 70
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 12:07:29 2010 | http://epydoc.sourceforge.net |