summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-12 07:22:40 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-12 07:22:40 (GMT)
commit1dc7d87f68e4b93c6ad325ac20faa3127e99bb14 (patch)
treebe1b36d14bb8c1cfd60ff1910cc6dc2037cef088
parent88b83f61f88af2f011a5568340112e5f8429afcb (diff)
Fix remaining time as the delay is in ms
-rw-r--r--kstars/ekos/capture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kstars/ekos/capture.cpp b/kstars/ekos/capture.cpp
index 1be1e1a..3809f07 100644
--- a/kstars/ekos/capture.cpp
+++ b/kstars/ekos/capture.cpp
@@ -2541,9 +2541,9 @@ int Capture::getJobRemainingTime(SequenceJob *job)
int remaining=0;
if (job->getStatus() == SequenceJob::JOB_BUSY)
- remaining += (job->getExposure() + job->getDelay()) * (job->getCount() - job->getCompleted()) + job->getExposeLeft();
+ remaining += (job->getExposure() + job->getDelay()/1000) * (job->getCount() - job->getCompleted()) + job->getExposeLeft();
else
- remaining += (job->getExposure() + job->getDelay()) * (job->getCount() - job->getCompleted());
+ remaining += (job->getExposure() + job->getDelay()/1000) * (job->getCount() - job->getCompleted());
return remaining;
}