modify the state report
fix the while true bug
Merge pull request #15 from youyong205/master

modify cat state report and fixed an deadloop bug