This commit is contained in:
mikespook 2012-05-29 08:45:37 +08:00
parent d2301626cd
commit 632d236343

View File

@ -66,11 +66,11 @@ func (job *Job) Encode() (data []byte) {
// Send some datas to client. // Send some datas to client.
// Using this in a job's executing. // Using this in a job's executing.
func (job *Job) UpdateData(data []byte, iswaring bool) { func (job *Job) UpdateData(data []byte, iswarning bool) {
result := append([]byte(job.Handle), 0) result := append([]byte(job.Handle), 0)
result = append(result, data...) result = append(result, data...)
var datatype uint32 var datatype uint32
if iswaring { if iswarning {
datatype = common.WORK_WARNING datatype = common.WORK_WARNING
} else { } else {
datatype = common.WORK_DATA datatype = common.WORK_DATA