Skip to content

Commit

Permalink
Fix comments and docstring in getCrashLs
Browse files Browse the repository at this point in the history
  • Loading branch information
xvillaneau committed Jun 15, 2022
1 parent 3141fef commit 2faa6cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ceph/crashes.go
Expand Up @@ -69,13 +69,10 @@ type cephCrashLs struct {
Archived string `json:"archived"`
}

// getCrashLs runs the 'crash ls' command and parses its results
// getCrashLs runs the 'ceph crash ls' command and process its results
func (c *CrashesCollector) getCrashLs() (map[crashEntry]int, error) {
crashes := make(map[crashEntry]int)

// We parse the plain format because it is quite compact.
// The JSON output of this command is very verbose and might be too slow
// to process in an outage storm.
cmd, err := json.Marshal(map[string]interface{}{
"prefix": "crash ls",
"format": "json",
Expand Down

0 comments on commit 2faa6cb

Please sign in to comment.