fixed disk state calculation code.
calculate energy and response time statistics.