Skip to content

Commit c671890

Browse files
author
dongjinlong
committed
chore: fix some typos in comments
Signed-off-by: dongjinlong <[email protected]>
1 parent 570d8a7 commit c671890

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cmd/internal/http/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func RegisterHandlers(mux httpmux.Mux, containerManager manager.Manager, httpAut
8383
authenticated = true
8484
}
8585

86-
// Change handler based on authenticator initalization
86+
// Change handler based on authenticator initialization
8787
if !authenticated {
8888
mux.HandleFunc(static.StaticResource, staticHandlerNoAuth)
8989
if err := pages.RegisterHandlersBasic(mux, containerManager, nil, urlBasePrefix); err != nil {

deploy/kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ kubectl kustomize deploy/kubernetes/overlays/examples_perf | kubectl apply -f -
5252

5353
## Kustomization
5454

55-
On your own fork of cAdvisor, create your own overlay directoy with your patches. Copy patches from the example folder if you intend to use them, but don't modify the originals. Commit your changes in your local branch, and use git to manage them the same way you would any other piece of code.
55+
On your own fork of cAdvisor, create your own overlay directory with your patches. Copy patches from the example folder if you intend to use them, but don't modify the originals. Commit your changes in your local branch, and use git to manage them the same way you would any other piece of code.
5656

5757
To run the daemonset with your patches applied:
5858
```

docs/storage/prometheus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Metric name | Type | Description | Unit (where applicable) | option parameter |
102102

103103
The table below lists the Prometheus hardware metrics exposed by cAdvisor (in alphabetical order by metric name) and corresponding `-disable_metrics` / `-enable_metrics` option parameter:
104104

105-
Metric name | Type | Description | Unit (where applicable) | option parameter | addional build flag |
105+
Metric name | Type | Description | Unit (where applicable) | option parameter | additional build flag |
106106
:-----------|:-----|:------------|:------------------------|:---------------------------|:--------------------
107107
`machine_cpu_cache_capacity_bytes` | Gauge | Cache size in bytes assigned to NUMA node and CPU core | bytes | cpu_topology |
108108
`machine_cpu_cores` | Gauge | Number of logical CPU cores | | |

fs/fs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func TestDirInodeUsage(t *testing.T) {
147147
}
148148
usage, err := fsInfo.GetDirUsage(dir)
149149
as.NoError(err)
150-
// We sould get numFiles+1 inodes, since we get 1 inode for each file, plus 1 for the directory
150+
// We should get numFiles+1 inodes, since we get 1 inode for each file, plus 1 for the directory
151151
as.True(uint64(numFiles+1) == usage.Inodes, "expected inodes in dir to be %d; got inodes: %d", numFiles+1, usage.Inodes)
152152
}
153153

integration/tests/api/docker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func TestBasicDockerContainer(t *testing.T) {
165165
containerInfo, err := fm.Cadvisor().Client().DockerContainer(containerID, request)
166166
require.NoError(t, err)
167167

168-
// Check that the contianer is known by both its name and ID.
168+
// Check that the container is known by both its name and ID.
169169
sanityCheck(containerID, containerInfo, t)
170170
sanityCheck(containerName, containerInfo, t)
171171

@@ -213,7 +213,7 @@ func TestDockerContainerSpec(t *testing.T) {
213213

214214
assert.True(containerInfo.Spec.HasCpu, "CPU should be isolated")
215215
if cgroups.IsCgroup2UnifiedMode() {
216-
// cpu shares are rounded slighly on cgroupv2 due to conversion between cgroupv1 (cpu.shares) and cgroupv2 (cpu.weight)
216+
// cpu shares are rounded slightly on cgroupv2 due to conversion between cgroupv1 (cpu.shares) and cgroupv2 (cpu.weight)
217217
// When container is created via docker, runc will convert cpu shares to cpu.weight https://github.com/opencontainers/runc/blob/d11f4d756e85ece5cdba8bb69f8bd4db3cdcbeab/libcontainer/cgroups/utils.go#L423-L428
218218
// And cAdvisor will convert cpu.weight back to cpu shares in https://github.com/google/cadvisor/blob/24e7a9883d12f944fd4403861707f4bafcaf4f3d/container/common/helpers.go#L249-L260
219219
// Worked example:

0 commit comments

Comments
 (0)