diff --git a/source/src/Scenario.cxx b/source/src/Scenario.cxx index 81b6c9d6d10213d732767c4247c5135ebcd1f31d..40b086526c1e15b8b8f2caf59c5378ae79d530a4 100755 --- a/source/src/Scenario.cxx +++ b/source/src/Scenario.cxx @@ -675,8 +675,8 @@ void Scenario::Evolution(cSecond t) //________________________________________________________________________ void Scenario::OldProgressPrintout(cSecond t) { - double Time = (fAbsoluteTime-fStartingTime)/cYear ; - double Total = (t-fStartingTime)/cYear; + double Time = (fAbsoluteTime-fStartingTime)/(double)cYear ; + double Total = (t-fStartingTime)/(double)cYear; // Reset the line for(int i = 0; i < 10; i++) @@ -701,8 +701,8 @@ void Scenario::OldProgressPrintout(cSecond t) //________________________________________________________________________ void Scenario::ProgressPrintout(cSecond t) { - double Time = (fAbsoluteTime-fStartingTime)/cYear ; - double Total = (t-fStartingTime)/cYear; + double Time = (fAbsoluteTime-fStartingTime)/(double)cYear ; + double Total = (t-fStartingTime)/(double)cYear; if(fOldProgressBar) OldProgressPrintout(t);