[PATCH] Reversed order of thinktime_blocks modulo operation