{"action":"closed","issue":{"url":"https://api.github.com/repos/duke-libraries/dul-hydra/issues/1356","labels_url":"https://api.github.com/repos/duke-libraries/dul-hydra/issues/1356/labels{/name}","comments_url":"https://api.github.com/repos/duke-libraries/dul-hydra/issues/1356/comments","events_url":"https://api.github.com/repos/duke-libraries/dul-hydra/issues/1356/events","html_url":"https://github.com/duke-libraries/dul-hydra/issues/1356","id":91320384,"number":1356,"title":"Error displaying list of batches under certain circumstances","user":{"login":"coblej","id":2104923,"avatar_url":"https://avatars.githubusercontent.com/u/2104923?v=3","gravatar_id":"","url":"https://api.github.com/users/coblej","html_url":"https://github.com/coblej","followers_url":"https://api.github.com/users/coblej/followers","following_url":"https://api.github.com/users/coblej/following{/other_user}","gists_url":"https://api.github.com/users/coblej/gists{/gist_id}","starred_url":"https://api.github.com/users/coblej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coblej/subscriptions","organizations_url":"https://api.github.com/users/coblej/orgs","repos_url":"https://api.github.com/users/coblej/repos","events_url":"https://api.github.com/users/coblej/events{/privacy}","received_events_url":"https://api.github.com/users/coblej/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duke-libraries/dul-hydra/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-26T17:52:16Z","updated_at":"2015-09-02T21:08:07Z","closed_at":"2015-09-02T21:08:07Z","body":"If a batch is being processed when the list of batches is display, an error is thrown under certain circumstances; namely, when the batch has started processing but no objects in the batch have completed processing yet.  I believe the problem lies in how the \"remaining time\" is calculated; in particular, that an attempt is made to divide by the number of object processed, which, in this case, is zero."}}