correct the mistake which timeout

the time's type is time_t(long) ,even though it is  char[20], only four
bytes is used. and I correct get (long) from the str,  used atol
Merge pull request #16 from friends110110/master

fix a mistake about timeout