Skip to content

Commit

Permalink
Make sure time fits on one line [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 14, 2021
1 parent b87a064 commit 9bb0d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 2.7.5 (unreleased)
## 2.8.0 (unreleased)

- No longer show walsender in long running queries
- Show relative time on maintenance page

## 2.7.4 (2021-02-01)

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/pg_hero/home_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def pghero_remove_index(query)

def pghero_formatted_vacuum_times(time)
content_tag(:span, title: pghero_formatted_date_time(time)) do
"#{time_ago_in_words(time.in_time_zone(@time_zone))} ago"
"#{time_ago_in_words(time, include_seconds: true).sub(/(over|about|almost) /, "").sub("less than", "<")} ago"
end
end

Expand Down

0 comments on commit 9bb0d6f

Please sign in to comment.