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

Function loadOpenclawSessionCountFromFile

agent/app/service/agents_overview.go:142–148  ·  view source on GitHub ↗
(sessionStorePath string)

Source from the content-addressed store, hash-verified

140}
141
142func loadOpenclawSessionCountFromFile(sessionStorePath string) (int, error) {
143 content, err := os.ReadFile(sessionStorePath)
144 if err != nil {
145 return 0, err
146 }
147 return parseOpenclawSessionCount(string(content))
148}
149
150func loadOpenclawOverviewJobCount(installPath string) (int, error) {
151 content, err := os.ReadFile(filepath.Join(installPath, openclawCronJobsRelativePath))

Callers 1

Calls 1

Tested by

no test coverage detected