Commit 54b1e141 authored by vicotor's avatar vicotor

update timestamp

parent bee29b58
......@@ -505,11 +505,11 @@ func (wm *WorkerManager) makeReceipt(worker *Worker, task *odysseus.TaskContent,
now := uint64(time.Now().UnixNano())
receipt := &odysseus.TaskReceipt{
TaskUuid: task.TaskUuid,
TaskFinishTime: now,
TaskTimestamp: task.TaskTimestamp,
TaskId: task.TaskId,
TaskUid: task.TaskUid,
TaskWorkload: task.TaskWorkload,
TaskDuration: int64(now - task.TaskTimestamp),
TaskDuration: int64(now-task.TaskTimestamp) / 1000,
TaskFee: 0,
TaskOutLen: int64(len(result.TaskResult)),
TaskProfitAccount: worker.ProfitAccount().Hex(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment