(installPath string)
| 148 | } |
| 149 | |
| 150 | func 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 | |
| 161 | func parseOpenclawSessionCount(output string) (int, error) { |
| 162 | if strings.TrimSpace(output) == "" { |
no test coverage detected