From 1ae59f3b511ab759e270918cd70558cd359b99f3 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 24 Jul 2019 09:58:11 +0800 Subject: [PATCH] fix typo "caculate" -> "calculate" fix typo "caculate" -> "calculate" Signed-off-by: alan --- supernode/daemon/mgr/task/manager_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supernode/daemon/mgr/task/manager_util.go b/supernode/daemon/mgr/task/manager_util.go index f348285fc..798bbe6fc 100644 --- a/supernode/daemon/mgr/task/manager_util.go +++ b/supernode/daemon/mgr/task/manager_util.go @@ -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))