commit/galaxy-central: jmchilton: Another fix like PR 546.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/bd2ec092d2f5/ Changeset: bd2ec092d2f5 User: jmchilton Date: 2014-11-02 21:17:26+00:00 Summary: Another fix like PR 546. Affected #: 1 file diff -r 51f4c1c7fce753eb28ec907715d324a2bca2c84a -r bd2ec092d2f57aa8526b7d6612403b7ae4354907 lib/galaxy/web/base/controllers/admin.py --- a/lib/galaxy/web/base/controllers/admin.py +++ b/lib/galaxy/web/base/controllers/admin.py @@ -1133,7 +1133,9 @@ finished = {} for job in recent_jobs: delta = datetime.utcnow() - job.update_time - if delta > timedelta( minutes=60 ): + if delta.days > 0: + finished[job.id] = '%s hours' % ( delta.days * 24 + int( delta.seconds / 60 / 60 ) ) + elif delta > timedelta( minutes=59 ): finished[job.id] = '%s hours' % int( delta.seconds / 60 / 60 ) else: finished[job.id] = '%s minutes' % int( delta.seconds / 60 ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org