I think this is difficult thing. In general I know that I need total and current count for gaining rate to something. But in this case, I cannot get total count.
For example, there are two jobs, A and B. Their total process will be always set randomly. Also, I cannot get job's total process count before job be ended.
I have one of method that set concreted rate each jobs like if A is done, set rate 50%. But in this situation that A's count is 10 and B's count is 1000 will make strange result. Although total count is 1010, it is 50% that 10 process is done. It is something strange.
So, I want to offer more natural progress rate to users. But I don't have total process count. Is there any useful method alternative generic percentage calculation?