summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2015-09-09 15:37:39 +0300
committerJasem Mutlaq <[email protected]>2015-09-09 15:37:39 +0300
commitb5ffd67e77bbeb96d8f8156cfbe1b30ebbde28e0 (patch)
treeac8f85f72b53899475720ba55d5c0f6bb1066e57
parent8051ca53471998f2365009a6533113e07c253912 (diff)
dayFraction must be a double
-rw-r--r--kstars/ekos/scheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kstars/ekos/scheduler.cpp b/kstars/ekos/scheduler.cpp
index 3249aa1..2d0aeae 100644
--- a/kstars/ekos/scheduler.cpp
+++ b/kstars/ekos/scheduler.cpp
@@ -1118,7 +1118,7 @@ int16_t Scheduler::getDarkSkyScore(const QDateTime &observationDateTime)
// Anything half an hour before dawn shouldn't be a good candidate
double earlyDawn = Dawn - 1.0/48.0;
- dayFraction = observationDateTime.time().msecsSinceStartOfDay() / (24 * 60 * 60 * 1000);
+ dayFraction = observationDateTime.time().msecsSinceStartOfDay() / (24.0 * 60.0 * 60.0 * 1000.0);
// The farther the target from dawn, the better.
if (dayFraction > earlyDawn && dayFraction < Dawn)