Skip to content

Commit 06c3824

Browse files
kilroggaaugustin
kilrogg
authored andcommitted
multiply time_taken in cache panel by 1000 not only for total_time, but also for call time
1 parent f1a3045 commit 06c3824

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

debug_toolbar/panels/cache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def _store_call_info(self, sender, name=None, time_taken=0,
172172
self.misses += 1
173173
else:
174174
self.hits += 1
175-
self.total_time += time_taken * 1000
175+
time_taken *= 1000
176+
177+
self.total_time += time_taken
176178
self.counts[name] += 1
177179
self.calls.append({
178180
'time': time_taken,

0 commit comments

Comments
 (0)