fix log output - use floating-point division