Skip to content

Commit

Permalink
fix typo "caculate" -> "calculate"
Browse files Browse the repository at this point in the history
fix typo "caculate" -> "calculate"

Signed-off-by: alan <[email protected]>
  • Loading branch information
zgfh authored Jul 24, 2019
1 parent 84313b6 commit 1ae59f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supernode/daemon/mgr/task/manager_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (tm *Manager) addOrUpdateTask(ctx context.Context, req *types.TaskCreateReq
task.Headers = req.Headers
}

// caculate piece size and update the PieceSize and PieceTotal
// calculate piece size and update the PieceSize and PieceTotal
pieceSize := computePieceSize(fileLength)
task.PieceSize = pieceSize
task.PieceTotal = int32((fileLength + (int64(pieceSize) - 1)) / int64(pieceSize))
Expand Down

0 comments on commit 1ae59f3

Please sign in to comment.