MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadOpenclawOverviewJobCount

Function loadOpenclawOverviewJobCount

agent/app/service/agents_overview.go:150–159  ·  view source on GitHub ↗
(installPath string)

Source from the content-addressed store, hash-verified

148}
149
150func loadOpenclawOverviewJobCount(installPath string) (int, error) {
151 content, err := os.ReadFile(filepath.Join(installPath, openclawCronJobsRelativePath))
152 if err != nil {
153 if os.IsNotExist(err) {
154 return 0, nil
155 }
156 return 0, err
157 }
158 return parseOpenclawCronCount(string(content))
159}
160
161func parseOpenclawSessionCount(output string) (int, error) {
162 if strings.TrimSpace(output) == "" {

Callers 1

GetOverviewMethod · 0.85

Calls 1

parseOpenclawCronCountFunction · 0.85

Tested by

no test coverage detected