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 15 from Products.ZenUtils.Utils import convToUnits 16 17 UNAVAILABLE = 'N/A' 1820 if partial is None or total is None: 21 return None 22 if not total: 23 return None 24 return partial * 100 / total25 26 31 3234 __allow_access_to_unprotected_subobjects__ = 1 357437 self.values = kw.copy()38 3941 return str(self.values)42 4345 return repr(self.values)46 47 50 5355 return percent(partial, total)5658 return percentString(n, decimals)59 64 69
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu May 7 11:46:21 2009 | http://epydoc.sourceforge.net |