# Time Remaining incorrect

**URL:** https://discourse.openondemand.org/t/time-remaining-incorrect/970
**Category:** Get Help
**Created:** [June 10, 2020, 1:43pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970 "2020-06-10T13:43:09Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [June 10, 2020, 1:43pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/1 "2020-06-10T13:43:09Z")

</div>

Using the UGE scheduler. When the interactive applications start they are showing the wrong “Time Remaining”. Here is the output for the jupyter job.

 ![Capture1](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/c6cf55a519e3e6302aeaa33217714d7b25d21520.png)

Number does not seem to big enough to be an integer wrapping issue.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [June 10, 2020, 1:58pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/2 "2020-06-10T13:58:23Z")

</div>

Yikes! 😅 . Can you let us know what this line looks like out of `qstat -r -xml` command?

`<hard_request name="h_rt" resource_contribution="0.000000">360</hard_request>`

---

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [June 10, 2020, 2:01pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/3 "2020-06-10T14:01:32Z")

</div>

> [@jeff.ohrstrom](#):
>
> qstat -r -xml

ivy:/ondemand/dev/jupyter$ qstat -r -xml

\<hard\_request name=“h\_rt” resource\_contribution=“0.000000”\>14400\</hard\_request\>

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [June 10, 2020, 2:33pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/4 "2020-06-10T14:33:19Z")

</div>

Thanks! I actually think the first edit with the full output is better. But clearly something’s wrong on our side as the data in the output seems legit.

I can’t replicate by hacking around, so we’ll take that output and try to build a better test case. What version of OOD are you running?

---

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [June 10, 2020, 2:36pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/5 "2020-06-10T14:36:51Z")

</div>

version 1.6.20. Haven’t upgraded to the most recent version.

Thanks

---

<div class="post-metadata">

### Author: ![sbutcher](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/sbutcher/32/490_2.png) [@sbutcher](https://discourse.openondemand.org/u/sbutcher)
#### Post date: [June 17, 2020, 8:15am UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/6 "2020-06-17T08:15:00Z")

</div>

i get the same issue with UGE.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [June 17, 2020, 1:38pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/7 "2020-06-17T13:38:05Z")

</div>

Can you upload the full output for `qstat -r -xml -j <job id>` We opened [this bug on our side](https://github.com/OSC/ood_core/issues/199) but I can update this topic too with any progress we make.

---

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [June 23, 2020, 4:19pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/8 "2020-06-23T16:19:37Z")

</div>

Sorry. Just saw the email.

\<?xml version='1.0'?\>

\<detailed\_job\_info xmlns:xsd=“[http://www.univa.com](http://www.univa.com)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)” xsi:schemaLocation=“file:///export/uge/util/resources/schemas/8.6.6/qstat/qstat.xsd file:///export/uge/util/resources/schemas/8.6.6/qstat/message.xsd file:///export/uge/util/resources/schemas/8.6.6/qstat/detailed\_job\_info.xsd”\>  
\<djob\_info\>  
  
\<JB\_job\_number\>748172\</JB\_job\_number\>  
\<JB\_job\_name\>jupyter\_interactive\</JB\_job\_name\>  
\<JB\_version\>0\</JB\_version\>  
\<JB\_project\>communitycluster\</JB\_project\>  
\<JB\_department\>defaultdepartment\</JB\_department\>  
\<JB\_exec\_file\>job\_scripts/748172\</JB\_exec\_file\>  
\<JB\_script\_file\>STDIN\</JB\_script\_file\>  
\<JB\_script\_size\>0\</JB\_script\_size\>  
\<JB\_submission\_time\>1592928409331\</JB\_submission\_time\>  
\<JB\_execution\_time\>0\</JB\_execution\_time\>  
\<JB\_deadline\>0\</JB\_deadline\>  
\<JB\_owner\>thomasbr\</JB\_owner\>  
\<JB\_uid\>99577\</JB\_uid\>  
\<JB\_group\>hpcc\</JB\_group\>  
\<JB\_gid\>101\</JB\_gid\>  
\<JB\_account\>sge\</JB\_account\>  
\<JB\_cwd\>/home/thomasbr/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/a4a46499-77d9-4334-bef2-71dd0a0857f6\</JB\_cwd\>  
\<JB\_notify\>false\</JB\_notify\>  
\<JB\_type\>0\</JB\_type\>  
\<JB\_reserve\>false\</JB\_reserve\>  
\<JB\_priority\>0\</JB\_priority\>  
\<JB\_jobshare\>0\</JB\_jobshare\>  
\<JB\_verify\>0\</JB\_verify\>  
\<JB\_checkpoint\_attr\>0\</JB\_checkpoint\_attr\>  
\<JB\_checkpoint\_interval\>0\</JB\_checkpoint\_interval\>  
\<JB\_restart\>0\</JB\_restart\>  
\<JB\_stdout\_path\_list\>  
  
\<PN\_path\>/home/thomasbr/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/a4a46499-77d9-4334-bef2-71dd0a0857f6/output.log\</PN\_path\>  
\<PN\_host\>\</PN\_host\>  
\<PN\_file\_host\>\</PN\_file\_host\>  
\<PN\_file\_staging\>false\</PN\_file\_staging\>  
\<PN\_access\_specifier\>0\</PN\_access\_specifier\>  
  
\</JB\_stdout\_path\_list\>  
\<JB\_merge\_stderr\>false\</JB\_merge\_stderr\>  
\<JB\_hard\_resource\_list\>  
  
\<CE\_name\>h\_rt\</CE\_name\>  
\<CE\_valtype\>3\</CE\_valtype\>  
\<CE\_stringval\>14400\</CE\_stringval\>  
\<CE\_doubleval\>14400.000000\</CE\_doubleval\>  
\<CE\_relop\>0\</CE\_relop\>  
\<CE\_consumable\>0\</CE\_consumable\>  
\<CE\_dominant\>0\</CE\_dominant\>  
\<CE\_pj\_doubleval\>0.000000\</CE\_pj\_doubleval\>  
\<CE\_pj\_fbsb\_doubleval\>0.000000\</CE\_pj\_fbsb\_doubleval\>  
\<CE\_pj\_dominant\>0\</CE\_pj\_dominant\>  
\<CE\_requestable\>0\</CE\_requestable\>  
\<CE\_tagged\>0\</CE\_tagged\>  
\<CE\_access\_specifier\>0\</CE\_access\_specifier\>  
\<CE\_available\_after\_preemption\>false\</CE\_available\_after\_preemption\>  
\<CE\_tagged\_for\_deletion\>false\</CE\_tagged\_for\_deletion\>  
\<CE\_license\_usage\>0.000000\</CE\_license\_usage\>  
\<CE\_affinity\>0.000000\</CE\_affinity\>  
  
\</JB\_hard\_resource\_list\>  
\<JB\_hard\_queue\_list\>  
  
\<QR\_name\>ondemand\</QR\_name\>  
\<QR\_pos\>0\</QR\_pos\>  
\<QR\_access\_specifier\>0\</QR\_access\_specifier\>  
  
\</JB\_hard\_queue\_list\>  
\<JB\_mail\_options\>0\</JB\_mail\_options\>  
\<JB\_mail\_list\>  
  
\<MR\_user\>thomasbr\</MR\_user\>  
\<MR\_host\>ivy\</MR\_host\>  
  
\</JB\_mail\_list\>  
\<JB\_pe\>sm\</JB\_pe\>  
\<JB\_pe\_range\>  
  
\<RN\_min\>11\</RN\_min\>  
\<RN\_max\>11\</RN\_max\>  
\<RN\_step\>1\</RN\_step\>  
  
\</JB\_pe\_range\>  
\<JB\_ja\_structure\>  
\<task\_id\_range\>  
\<RN\_min\>1\</RN\_min\>  
\<RN\_max\>1\</RN\_max\>  
\<RN\_step\>1\</RN\_step\>  
\</task\_id\_range\>  
\</JB\_ja\_structure\>  
\<JB\_ja\_tasks\>  
  
\<JAT\_task\_number\>1\</JAT\_task\_number\>  
\<JAT\_status\>128\</JAT\_status\>  
\<JAT\_start\_time\>1592928425042\</JAT\_start\_time\>  
\<JAT\_hold\>0\</JAT\_hold\>  
\<JAT\_granted\_pe\>sm\</JAT\_granted\_pe\>  
\<JAT\_job\_restarted\>0\</JAT\_job\_restarted\>  
\<JAT\_granted\_destin\_identifier\_list\>  
  
\<JG\_qname\>ondemand@compute-19-11.localdomain\</JG\_qname\>  
\<JG\_qversion\>0\</JG\_qversion\>  
\<JG\_qhostname\>compute-19-11.localdomain\</JG\_qhostname\>  
\<JG\_slots\>11\</JG\_slots\>  
\<JG\_queue\>\</JG\_queue\>  
\<JG\_tag\_slave\_job\>0\</JG\_tag\_slave\_job\>  
\<JG\_ticket\>1428.571429\</JG\_ticket\>  
\<JG\_oticket\>0.000000\</JG\_oticket\>  
\<JG\_fticket\>1428.571429\</JG\_fticket\>  
\<JG\_sticket\>0.000000\</JG\_sticket\>  
\<JG\_jcoticket\>0.000000\</JG\_jcoticket\>  
\<JG\_jcfticket\>0.000000\</JG\_jcfticket\>  
\<JG\_binding\>\</JG\_binding\>  
\<JG\_resource\_map\>\</JG\_resource\_map\>  
  
\</JAT\_granted\_destin\_identifier\_list\>  
\<JAT\_state\>128\</JAT\_state\>  
\<JAT\_scaled\_usage\_list\>  
  
\<UA\_name\>cpu\</UA\_name\>  
\<UA\_value\>0.690000\</UA\_value\>  
  
  
\<UA\_name\>mem\</UA\_name\>  
\<UA\_value\>0.006140\</UA\_value\>  
  
  
\<UA\_name\>io\</UA\_name\>  
\<UA\_value\>0.131532\</UA\_value\>  
  
  
\<UA\_name\>iow\</UA\_name\>  
\<UA\_value\>0.000000\</UA\_value\>  
  
  
\<UA\_name\>ioops\</UA\_name\>  
\<UA\_value\>58928.000000\</UA\_value\>  
  
  
\<UA\_name\>vmem\</UA\_name\>  
\<UA\_value\>14422016.000000\</UA\_value\>  
  
  
\<UA\_name\>maxvmem\</UA\_name\>  
\<UA\_value\>57413632.000000\</UA\_value\>  
  
  
\<UA\_name\>memvmm\</UA\_name\>  
\<UA\_value\>1.977823\</UA\_value\>  
  
  
\<UA\_name\>memrss\</UA\_name\>  
\<UA\_value\>0.000000\</UA\_value\>  
  
  
\<UA\_name\>mempss\</UA\_name\>  
\<UA\_value\>0.000000\</UA\_value\>  
  
  
\<UA\_name\>wallclock\</UA\_name\>  
\<UA\_value\>221.615000\</UA\_value\>  
  
\</JAT\_scaled\_usage\_list\>  
\<JAT\_granted\_request\_list\>  
  
\<CE\_name\>h\_rt\</CE\_name\>  
\<CE\_valtype\>3\</CE\_valtype\>  
\<CE\_stringval\>14400\</CE\_stringval\>  
\<CE\_doubleval\>14400.000000\</CE\_doubleval\>  
\<CE\_relop\>0\</CE\_relop\>  
\<CE\_consumable\>0\</CE\_consumable\>  
\<CE\_dominant\>0\</CE\_dominant\>  
\<CE\_pj\_doubleval\>0.000000\</CE\_pj\_doubleval\>  
\<CE\_pj\_fbsb\_doubleval\>0.000000\</CE\_pj\_fbsb\_doubleval\>  
\<CE\_pj\_dominant\>0\</CE\_pj\_dominant\>  
\<CE\_requestable\>0\</CE\_requestable\>  
\<CE\_tagged\>1\</CE\_tagged\>  
\<CE\_access\_specifier\>0\</CE\_access\_specifier\>  
\<CE\_available\_after\_preemption\>false\</CE\_available\_after\_preemption\>  
\<CE\_tagged\_for\_deletion\>false\</CE\_tagged\_for\_deletion\>  
\<CE\_license\_usage\>0.000000\</CE\_license\_usage\>  
\<CE\_affinity\>0.000000\</CE\_affinity\>  
  
\</JAT\_granted\_request\_list\>  
  
\</JB\_ja\_tasks\>  
\<JB\_verify\_suitable\_queues\>0\</JB\_verify\_suitable\_queues\>  
\<JB\_soft\_wallclock\_gmt\>0\</JB\_soft\_wallclock\_gmt\>  
\<JB\_hard\_wallclock\_gmt\>0\</JB\_hard\_wallclock\_gmt\>  
\<JB\_override\_tickets\>0\</JB\_override\_tickets\>  
\<JB\_ar\>0\</JB\_ar\>  
\<JB\_ja\_task\_concurrency\>0\</JB\_ja\_task\_concurrency\>  
\<JB\_ja\_task\_concurrency\_all\>false\</JB\_ja\_task\_concurrency\_all\>  
\<JB\_binding\>  
\<BN\_hostname\>\</BN\_hostname\>  
\<BN\_strategy\>no\_job\_binding\</BN\_strategy\>  
\<BN\_type\>0\</BN\_type\>  
\<BN\_parameter\_n\>0\</BN\_parameter\_n\>  
\<BN\_parameter\_socket\_offset\>0\</BN\_parameter\_socket\_offset\>  
\<BN\_parameter\_core\_offset\>0\</BN\_parameter\_core\_offset\>  
\<BN\_parameter\_striding\_step\_size\>0\</BN\_parameter\_striding\_step\_size\>  
\<BN\_parameter\_explicit\>no\_explicit\_binding\</BN\_parameter\_explicit\>  
\<BN\_parameter\_nlocal\>0\</BN\_parameter\_nlocal\>  
\<BN\_max\_slots\_qend\>0\</BN\_max\_slots\_qend\>  
\</JB\_binding\>  
\<JB\_is\_binary\>false\</JB\_is\_binary\>  
\<JB\_no\_shell\>false\</JB\_no\_shell\>  
\<JB\_is\_array\>false\</JB\_is\_array\>  
\<JB\_is\_immediate\>false\</JB\_is\_immediate\>  
\<JB\_env\_list\>  
\<job\_sublist\>  
\<VA\_variable\>MANPATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-nodejs6/root/usr/share/man:/opt/rh/rh-ruby24/root/usr/local/share/man:/opt/rh/rh-ruby24/root/usr/share/man:/opt/rh/httpd24/root/usr/share/man:/opt/ood/ondemand/root/usr/share/man:\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>XDG\_SESSION\_ID\</VA\_variable\>  
\<VA\_value\>c196\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PASSENGER\_SPAWN\_WORK\_DIR\</VA\_variable\>  
\<VA\_value\>/tmp/passenger.spawn.XXXX1dPZmT\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>TERM\</VA\_variable\>  
\<VA\_value\>unknown\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SHELL\</VA\_variable\>  
\<VA\_value\>/bin/bash\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>OOD\_DASHBOARD\_TITLE\</VA\_variable\>  
\<VA\_value\>Texas Tech HPCC\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>LIBRARY\_PATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/httpd24/root/usr/lib64\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PYTHONUNBUFFERED\</VA\_variable\>  
\<VA\_value\>1\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>RACK\_BASE\_URI\</VA\_variable\>  
\<VA\_value\>/pun/sys/dashboard\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>X\_SCLS\</VA\_variable\>  
\<VA\_value\>rh-nodejs6 rh-ruby24 httpd24 ondemand \</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>USER\</VA\_variable\>  
\<VA\_value\>thomasbr\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>LD\_LIBRARY\_PATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-nodejs6/root/usr/lib64:/opt/rh/rh-ruby24/root/usr/local/lib64:/opt/rh/rh-ruby24/root/usr/lib64:/opt/rh/httpd24/root/usr/lib64:/opt/ood/ondemand/root/usr/lib64\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SUDO\_USER\</VA\_variable\>  
\<VA\_value\>apache\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SUDO\_UID\</VA\_variable\>  
\<VA\_value\>48\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>ONDEMAND\_PORTAL\</VA\_variable\>  
\<VA\_value\>ondemand\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>RAILS\_RELATIVE\_URL\_ROOT\</VA\_variable\>  
\<VA\_value\>/pun/sys/dashboard\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>HTTP\_X\_ACCEL\_MAPPING\</VA\_variable\>  
\<VA\_value\>/=/sendfile\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>USERNAME\</VA\_variable\>  
\<VA\_value\>root\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>IN\_PASSENGER\</VA\_variable\>  
\<VA\_value\>1\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>RACK\_ENV\</VA\_variable\>  
\<VA\_value\>production\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>OOD\_DASHBOARD\_LOGO\</VA\_variable\>  
\<VA\_value\>/public/TTUHPCClogo.png\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PASSENGER\_USE\_FEEDBACK\_FD\</VA\_variable\>  
\<VA\_value\>true\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PATH\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/bin:/opt/rh/rh-nodejs6/root/usr/bin:/opt/rh/rh-ruby24/root/usr/local/bin:/opt/rh/rh-ruby24/root/usr/bin:/opt/rh/httpd24/root/usr/bin:/opt/rh/httpd24/root/usr/sbin:/opt/ood/ondemand/root/usr/bin:/opt/ood/ondemand/root/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>MAIL\</VA\_variable\>  
\<VA\_value\>/var/mail/root\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>WSGI\_ENV\</VA\_variable\>  
\<VA\_value\>production\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>HTTP\_X\_SENDFILE\_TYPE\</VA\_variable\>  
\<VA\_value\>X-Accel-Redirect\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SECRET\_KEY\_BASE\</VA\_variable\>  
\<VA\_value\>78197cf08cf28eee99f6464cfeea78aeae604553de635c2d452cd4f680d00eba9bc06718ad5c484fa6e453145e1d04ac642a826869301c072560384b2041cda1\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PWD\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/sys/dashboard\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>LANG\</VA\_variable\>  
\<VA\_value\>C\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>NODE\_PATH\</VA\_variable\>  
\<VA\_value\>/opt/ood/ondemand/root/usr/share/passenger/node\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>NODE\_ENV\</VA\_variable\>  
\<VA\_value\>production\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>ONDEMAND\_VERSION\</VA\_variable\>  
\<VA\_value\>v1.6.20\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SHLVL\</VA\_variable\>  
\<VA\_value\>0\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SUDO\_COMMAND\</VA\_variable\>  
\<VA\_value\>/opt/ood/nginx\_stage/sbin/nginx\_stage pun -u thomasbr -a https%3a%2f%2fondemand.hpcc.ttu.edu%3a443%2fnginx%2finit%3fredir%3d%24http\_x\_forwarded\_escaped\_uri\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>HOME\</VA\_variable\>  
\<VA\_value\>/home/thomasbr\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>RAILS\_ENV\</VA\_variable\>  
\<VA\_value\>production\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PYTHONPATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-nodejs6/root/usr/lib/python2.7/site-packages\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>LOGNAME\</VA\_variable\>  
\<VA\_value\>root\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SERVER\_SOFTWARE\</VA\_variable\>  
\<VA\_value\>nginx/1.14.0 Phusion\_Passenger/5.3.7\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>OOD\_DEV\_APPS\_ROOT\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/dev/thomasbr/gateway\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>XDG\_DATA\_DIRS\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-ruby24/root/usr/local/share:/opt/rh/rh-ruby24/root/usr/share:/usr/local/share:/usr/share\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>UID\</VA\_variable\>  
\<VA\_value\>101\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PKG\_CONFIG\_PATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-ruby24/root/usr/local/lib64/pkgconfig:/opt/rh/rh-ruby24/root/usr/lib64/pkgconfig:/opt/rh/httpd24/root/usr/lib64/pkgconfig:/opt/ood/ondemand/root/usr/lib64/pkgconfig\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PASSENGER\_APP\_ENV\</VA\_variable\>  
\<VA\_value\>production\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>XDG\_RUNTIME\_DIR\</VA\_variable\>  
\<VA\_value\>/run/user/0\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SUDO\_GID\</VA\_variable\>  
\<VA\_value\>48\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>RUBYLIB\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib:/opt/ood/ondemand/root/usr/share/ruby/vendor\_ruby:/opt/ood/ondemand/root/usr/lib64/ruby/vendor\_ruby\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>ONDEMAND\_TITLE\</VA\_variable\>  
\<VA\_value\>Open OnDemand\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>PASSENGER\_BASE\_URI\</VA\_variable\>  
\<VA\_value\>/pun/sys/dashboard\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>BUNDLER\_ORIG\_PATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-nodejs6/root/usr/bin:/opt/rh/rh-ruby24/root/usr/local/bin:/opt/rh/rh-ruby24/root/usr/bin:/opt/rh/httpd24/root/usr/bin:/opt/rh/httpd24/root/usr/sbin:/opt/ood/ondemand/root/usr/bin:/opt/ood/ondemand/root/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>GEM\_PATH\</VA\_variable\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>GEM\_HOME\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>BUNDLE\_BIN\_PATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/exe/bundle\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>BUNDLE\_GEMFILE\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/sys/dashboard/Gemfile\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>BUNDLER\_VERSION\</VA\_variable\>  
\<VA\_value\>1.13.7\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>RUBYOPT\</VA\_variable\>  
\<VA\_value\>-rbundler/setup\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>BUNDLER\_ORIG\_MANPATH\</VA\_variable\>  
\<VA\_value\>/opt/rh/rh-nodejs6/root/usr/share/man:/opt/rh/rh-ruby24/root/usr/local/share/man:/opt/rh/rh-ruby24/root/usr/share/man:/opt/rh/httpd24/root/usr/share/man:/opt/ood/ondemand/root/usr/share/man:\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>DISABLE\_SAFARI\_BASIC\_AUTH\_WARNING\</VA\_variable\>  
\<VA\_value\>1\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>OOD\_DATAROOT\</VA\_variable\>  
\<VA\_value\>/home/thomasbr/ondemand/data/sys/dashboard\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>SGE\_ROOT\</VA\_variable\>  
\<VA\_value\>/export/uge\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_HOME\</VA\_variable\>  
\<VA\_value\>/home/thomasbr\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_LOGNAME\</VA\_variable\>  
\<VA\_value\>root\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_PATH\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/bin:/opt/rh/rh-nodejs6/root/usr/bin:/opt/rh/rh-ruby24/root/usr/local/bin:/opt/rh/rh-ruby24/root/usr/bin:/opt/rh/httpd24/root/usr/bin:/opt/rh/httpd24/root/usr/sbin:/opt/ood/ondemand/root/usr/bin:/opt/ood/ondemand/root/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_SHELL\</VA\_variable\>  
\<VA\_value\>/bin/bash\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_MAIL\</VA\_variable\>  
\<VA\_value\>/var/mail/root\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_HOST\</VA\_variable\>  
\<VA\_value\>ivy\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\<job\_sublist\>  
\<VA\_variable\>\_\_SGE\_PREFIX\_\_O\_WORKDIR\</VA\_variable\>  
\<VA\_value\>/var/www/ood/apps/sys/dashboard\</VA\_value\>  
\<VA\_access\_specifier\>0\</VA\_access\_specifier\>  
\</job\_sublist\>  
\</JB\_env\_list\>  
\<JB\_mbind\>0\</JB\_mbind\>  
\<JB\_submission\_command\_line\>  
  
\<ST\_name\>/export/uge/bin/lx-amd64/qsub\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-wd\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>/home/thomasbr/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/a4a46499-77d9-4334-bef2-71dd0a0857f6\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-N\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>jupyter\_interactive\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-o\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>/home/thomasbr/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/a4a46499-77d9-4334-bef2-71dd0a0857f6/output.log\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-q\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>ondemand\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-l\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>h\_rt=04:00:00\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-P\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>communitycluster\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-V\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>-pe\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>sm\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
  
\<ST\_name\>11\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
\</JB\_submission\_command\_line\>  
\<JB\_preemption\>\</JB\_preemption\>  
\<JB\_supplementary\_group\_list\>  
  
\<ST\_name\>hpcc\</ST\_name\>  
\<ST\_pos\>0\</ST\_pos\>  
\<ST\_access\_specifier\>0\</ST\_access\_specifier\>  
  
\</JB\_supplementary\_group\_list\>  
\<JB\_category\_id\>644\</JB\_category\_id\>  
\<JB\_request\_dispatch\_info\>false\</JB\_request\_dispatch\_info\>  
  
\</djob\_info\>  
  
  
  
  
\<SME\_global\_message\_list\>  
  
\<MES\_message\_number\>43\</MES\_message\_number\>  
\<MES\_message\>queue instance “serial@compute-40-1.localdomain” dropped because it is temporarily not available\</MES\_message\>  
\<MES\_count\>1\</MES\_count\>  
\<MES\_total\>310\</MES\_total\>

(repeated…)

```
    <element>
      <MES_message_number>39</MES_message_number>
      <MES_message>queue instance &quot;ivy@compute-18-35.localdomain&quot; dropped because it is full</MES_message>
      <MES_count>78</MES_count>
      <MES_total>78</MES_total>
    </element>
  </SME_global_message_list>
  <SME_exceeded>false</SME_exceeded>
</element>

```

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [June 23, 2020, 6:50pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/9 "2020-06-23T18:50:52Z")

</div>

Thank you so much! I’ve figured out where our bug is. It’s `JAT_start_time` being in milliseconds instead of seconds.

---

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [June 24, 2020, 2:24pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/10 "2020-06-24T14:24:07Z")

</div>

Great work!

Do we have to upgrade to the current version or is there something we can do in our current version 1.6.20 to fix the issue.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [June 30, 2020, 2:49pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/11 "2020-06-30T14:49:07Z")

</div>

I have a fix in for the next release.

However if you drop this in `/etc/ood/config/apps/dashboard/initializers/uge.rb` it may work for you. Please test this though as I don’t have direct access to a UGE cluster, so I’m not sure if it _actually_ works, I just think it should.

```ruby
require "ood_core"
require "ood_core/job/adapters/sge/qstat_xml_j_r_listener"

# Initializer to hotfix UGE's use of milliseconds where other
# GE schedulers use seconds
class QstatXmlJRListener

  def end_JB_submission_time
    @parsed_job[:submission_time] = ms_to_seconds(@current_text.to_i)
  end

  def end_JAT_start_time
    @parsed_job[:status] = :running
    @parsed_job[:dispatch_time] = ms_to_seconds(@current_text.to_i)
    @parsed_job[:wallclock_time] = Time.now.to_i - @parsed_job[:dispatch_time]
  end

  def ms_to_seconds(raw)
    raw.digits.length >= 13 ? raw / 1000 : raw
  end
end

```

---

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [July 1, 2020, 12:44am UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/12 "2020-07-01T00:44:10Z")

</div>

I refreshed the server before launching the rstudio application. It is till showing the same issue.

 ![Jupyter3](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/8b4a96ea8fe2dc3b908be807cc8a7dbca8f3483a.png)

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [July 1, 2020, 3:06pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/13 "2020-07-01T15:06:52Z")

</div>

When you say restart the server you mean the apache httpd or your PUN? You would need to restart your PUN in this case.

Sorry about that! I guess you need the ‘require’ statements. I’ll give it here again in full.

```ruby
require "ood_core"
require "ood_core/job/adapters/sge/qstat_xml_j_r_listener"

# Initializer to hotfix UGE's use of milliseconds where other
# GE schedulers use seconds
class QstatXmlJRListener

  def end_JB_submission_time
    @parsed_job[:submission_time] = ms_to_seconds(@current_text.to_i)
  end

  def end_JAT_start_time
    @parsed_job[:status] = :running
    @parsed_job[:dispatch_time] = ms_to_seconds(@current_text.to_i)
    @parsed_job[:wallclock_time] = Time.now.to_i - @parsed_job[:dispatch_time]
  end

  def ms_to_seconds(raw)
    raw.digits.length >= 13 ? raw / 1000 : raw
  end
end

```

---

<div class="post-metadata">

### Author: ![thomasbrTTU](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/thomasbrttu/32/249_2.png) [@thomasbrTTU](https://discourse.openondemand.org/u/thomasbrTTU)
#### Post date: [July 1, 2020, 5:29pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/14 "2020-07-01T17:29:22Z")

</div>

It is now working. You can close the ticket. Thanks

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [July 1, 2020, 5:47pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/15 "2020-07-01T17:47:03Z")

</div>

Awesome! It should be fixed for real in version 1.8.

---

<div class="post-metadata">

### Author: ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)
#### Post date: [May 26, 2022, 3:43pm UTC](https://discourse.openondemand.org/t/time-remaining-incorrect/970/16 "2022-05-26T15:43:11Z")

</div>


