Skip to content

Commit 40bd510

Browse files
betteralign: 8 bytes saved: struct with 112 pointer bytes could be 104, 32 bytes saved: struct with 192 pointer bytes could be 160
1 parent 01a9afa commit 40bd510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pmond/model/exec_flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ type ExecFlags struct {
1212
Args string `json:"args"`
1313
EnvVars string `json:"env_vars"`
1414
Name string `json:"name"`
15-
NoAutoRestart bool `json:"no_auto_restart"`
1615
Dependencies []string `json:"dependencies"`
16+
NoAutoRestart bool `json:"no_auto_restart"`
1717
}
1818

1919
func (e *ExecFlags) Parse(jsonStr string) (*ExecFlags, error) {

pmond/model/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ type Process struct {
7676
Args string `json:"args"`
7777
EnvVars string `json:"env_vars"`
7878
Username string `json:"username"`
79+
Dependencies string `json:"dependencies"`
7980
Status ProcessStatus `json:"status"`
8081
ID uint32 `gorm:"primary_key" json:"id"`
8182
Pid uint32 `gorm:"column:pid" json:"pid"`
8283
Uid uint32 `gorm:"column:uid" json:"uid"`
8384
Gid uint32 `gorm:"column:gid" json:"gid"`
8485
RestartCount uint32 `gorm:"-" json:"-"`
8586
AutoRestart bool `json:"auto_restart"`
86-
Dependencies string `json:"dependencies"`
8787
}
8888

8989
func (p Process) NoAutoRestartStr() string {

0 commit comments

Comments
 (0)