fix calculation of index compaction speed