Skip to content

Commit

Permalink
Improves request history recency weighting; Prepares for 2.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebebak committed Dec 12, 2018
1 parent cbefee6 commit e7c0b46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/request_history.py
Expand Up @@ -142,8 +142,9 @@ def get_entry_parts(self, req):

try: # in case, e.g., schema has changed
seconds = time() - req[1]['ts']
pad = chr(8203) * min(round(pow(round(seconds / 60), 0.4)), 150)
return [
truncate(header, 100) + chr(8203) * min(round(pow(round(seconds / 60), 0.4)), 150),
pad + truncate(header, 100),
approximate_age(req[1]['ts']),
str(req[1]['code']),
req[1]['file'] or '?',
Expand Down
3 changes: 3 additions & 0 deletions messages/2.34.0.txt
@@ -0,0 +1,3 @@
# New Features

Improvement to request history recency weighting.

0 comments on commit e7c0b46

Please sign in to comment.