fixed bug: calculation of log time was wrong