diff --git a/debug_toolbar/panels/profiling.py b/debug_toolbar/panels/profiling.py index b946f9f04..4613a3cad 100644 --- a/debug_toolbar/panels/profiling.py +++ b/debug_toolbar/panels/profiling.py @@ -90,7 +90,7 @@ def subfuncs(self): count = len(self.statobj.all_callees[self.func]) for i, (func, stats) in enumerate(self.statobj.all_callees[self.func].items()): h1 = h + ((i + 1) / count) / (self.depth + 1) - s1 = 0 if stats[3] == 0 else s * (stats[3] / self.stats[3]) + s1 = 0 if self.stats[3] == 0 else s * (stats[3] / self.stats[3]) yield FunctionCall( self.statobj, func,