Fix ineffassign error

This commit is contained in:
yuokada
2016-05-28 23:29:18 +09:00
parent 04f6255e27
commit 24db3dfba6

View File

@@ -57,5 +57,8 @@ func TimeDifference(server string) (time.Duration, error) {
}
f, err := strconv.ParseFloat(string(submatched[1]), 64)
if err != nil {
return time.Duration(0), err
}
return time.Duration(f*1000) * time.Millisecond, nil
}