##// END OF EJS Templates
profiling: cope with configwith default value handling changes...
marmoute -
r32978:41b081ac default
parent child Browse files
Show More
@@ -126,6 +126,8 b' def statprofile(ui, fp):'
126 kwargs = {}
126 kwargs = {}
127
127
128 def fraction(s):
128 def fraction(s):
129 if isinstance(s, (float, int)):
130 return float(s)
129 if s.endswith('%'):
131 if s.endswith('%'):
130 v = float(s[:-1]) / 100
132 v = float(s[:-1]) / 100
131 else:
133 else:
General Comments 0
You need to be logged in to leave comments. Login now