Skip to content

Commit

Permalink
- Fixes lint error for comment
Browse files Browse the repository at this point in the history
- Adds new comment
  • Loading branch information
rjthomas013 committed Mar 22, 2024
1 parent 3e24c50 commit 8ccc8ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
}
}

// populate shm_size if configured
if driverConfig.ShmSize != "" {
shmsize, memErr := memoryInBytes(driverConfig.ShmSize)
if memErr != nil {
Expand Down
2 changes: 1 addition & 1 deletion driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ func TestPodmanDriver_Swap(t *testing.T) {
taskCfg.MemorySwap = "100m"
// set a swappiness of 60
taskCfg.MemorySwappiness = 60
//set shm_size of 100m
// set shm_size of 100m
taskCfg.ShmSize = "100m"
must.NoError(t, task.EncodeConcreteDriverConfig(&taskCfg))

Expand Down

0 comments on commit 8ccc8ff

Please sign in to comment.