more CallDuration changes

This commit is contained in:
Radu Ioan Fericean
2014-04-25 21:22:53 +03:00
parent 25cb5be8c0
commit a95fef496b
4 changed files with 12 additions and 12 deletions

View File

@@ -125,7 +125,7 @@ func (cd *CallDescriptor) ValidateCallData() error {
return errors.New("TimeStart must be strctly before TimeEnd")
}
if cd.TimeEnd.Sub(cd.TimeStart) < cd.DurationIndex {
return errors.New("CallDuration must be equal or grater than TimeEnd - TimeStart")
return errors.New("DurationIndex must be equal or grater than TimeEnd - TimeStart")
}
return nil
}