fixed WORK_STATUS package size

This commit is contained in:
Xing Xing 2014-01-09 14:55:51 +08:00
parent 98450f63f6
commit 47d03a8bb1

View File

@ -65,7 +65,7 @@ func (inpack *inPack) UpdateStatus(numerator, denominator int) {
hl := len(inpack.handle) hl := len(inpack.handle)
nl := len(n) nl := len(n)
dl := len(d) dl := len(d)
outpack.data = getBuffer(hl + nl + dl + 3) outpack.data = getBuffer(hl + nl + dl + 2)
copy(outpack.data, []byte(inpack.handle)) copy(outpack.data, []byte(inpack.handle))
copy(outpack.data[hl+1:], n) copy(outpack.data[hl+1:], n)
copy(outpack.data[hl+nl+2:], d) copy(outpack.data[hl+nl+2:], d)