MCPcopy
hub / github.com/wavetermdev/waveterm / getMetaInt64

Function getMetaInt64

pkg/jobcontroller/jobcontroller.go:289–301  ·  view source on GitHub ↗
(meta wshrpc.FileMeta, key string)

Source from the content-addressed store, hash-verified

287}
288
289func getMetaInt64(meta wshrpc.FileMeta, key string) int64 {
290 val, ok := meta[key]
291 if !ok {
292 return 0
293 }
294 if intVal, ok := val.(int64); ok {
295 return intVal
296 }
297 if floatVal, ok := val.(float64); ok {
298 return int64(floatVal)
299 }
300 return 0
301}
302
303func jobPruningWorker() {
304 defer func() {

Callers 1

restartStreamingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected