JohnTheBlindMilkman / SlurmJobMonitor

MIT License
0 stars 0 forks source link

Fix the remaining time calculation #5

Closed JohnTheBlindMilkman closed 1 month ago

JohnTheBlindMilkman commented 3 months ago

Currently, the way in which the remaining time is calculated does not correspond to how the percentages change. The refresh rate needs to be high enough (30s seems to work) to the point where initially the time was calculated roughly ok, but now it is not updating correctly. I'm not sure why.

Maybe the lag of reading files is messing the time estimation. Maybe there is a bug.

JohnTheBlindMilkman commented 3 months ago

This seems to be fixed, by eye at least.

JohnTheBlindMilkman commented 2 months ago

It is better, but still fluctuates a lot. Maybe it would be a good idea to average the progress value as well, and remove the line where it flips between ETA and remaining time.

JohnTheBlindMilkman commented 2 months ago

It may be that the sum, when calculating the average, overflows then the time estimate goes haywire. Time estimation goes bonkers after some jobs have finished.