+ if (host_ == nullptr) // parallel task: their remain is not in flops (we'd need a vector for that, not a scalar)
+ throw &e;
+ else // sequential task: everything's fine
+ return surfAction_->getRemains();
+}
+double simgrid::kernel::activity::ExecImpl::remainingRatio()
+{
+ if (host_ == nullptr) // parallel task: their remain is already between 0 and 1 (see comment in ExecImpl::remains())
+ return surfAction_->getRemains();
+ else // Actually compute the ratio for sequential tasks
+ return surfAction_->getRemains() / surfAction_->getCost();