Permalink
Browse files

use age

  • Loading branch information...
will committed Sep 10, 2012
1 parent d63aa1e commit 63d059c21ba515aa38b3a941f7d1d02a082d08e6
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.rb
View
@@ -10,7 +10,7 @@ def ps
select
procpid,
application_name as source,
- (now()-query_start)::interval as running_for,
+ age(now(),query_start) as running_for,
waiting,
current_query as query
from pg_stat_activity

0 comments on commit 63d059c

Please sign in to comment.