← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2538: 1. Prediction of simulation finish time is added to HTTP-batch server.

 

------------------------------------------------------------
revno: 2538
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-11-11 16:42:25 +0100
message:
  1. Prediction of simulation finish time is added to HTTP-batch server.
modified:
  core/main/yade-batch.in


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'core/main/yade-batch.in'
--- core/main/yade-batch.in	2010-11-06 11:33:09 +0000
+++ core/main/yade-batch.in	2010-11-11 15:42:25 +0000
@@ -76,6 +76,8 @@
 			ret+='<td>'
 			if info['stopAtIter']>0:
 				ret+='<nobr>%2.2f%% done</nobr><br/><nobr>step %d/%d</nobr>'%(info['iter']*100./info['stopAtIter'],info['iter'],info['stopAtIter'])
+				finishTime = str(time.ctime(time.time()+int(round(info['stopAtIter']/info['iter']/info['realtime']))))
+				ret+='<br/><font size="1"><nobr>%s finishes</nobr></font><br/>'%finishTime
 			else: ret+='<nobr>step %d</nobr>'%(info['iter'])
 			if info['realtime']!=0: ret+='<br/><nobr>avg %g/sec</nobr>'%(info['iter']/info['realtime'])
 			ret+='<br/><nobr>%d bodies</nobr><br/><nobr>%d intrs</nobr>'%(info['numBodies'],info['numIntrs'])