Skip to content

Commit

Permalink
Merge pull request dragonflyoss#716 from zgfh/patch-7
Browse files Browse the repository at this point in the history
fix typo "caculate" -> "calculate"
  • Loading branch information
starnop authored Jul 24, 2019
2 parents 84313b6 + 1ae59f3 commit 3dcedeb
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 3dcedeb

Please sign in to comment.