From 47d03a8bb15705348f1ecb0199f5d538cde2ad54 Mon Sep 17 00:00:00 2001 From: Xing Xing Date: Thu, 9 Jan 2014 14:55:51 +0800 Subject: [PATCH] fixed WORK_STATUS package size --- worker/inpack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/inpack.go b/worker/inpack.go index 68d9928..2f48636 100644 --- a/worker/inpack.go +++ b/worker/inpack.go @@ -65,7 +65,7 @@ func (inpack *inPack) UpdateStatus(numerator, denominator int) { hl := len(inpack.handle) nl := len(n) 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[hl+1:], n) copy(outpack.data[hl+nl+2:], d)