MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / durationCeil

Function durationCeil

internal/home/client.go:593–598  ·  view source on GitHub ↗
(value time.Duration, unit time.Duration)

Source from the content-addressed store, hash-verified

591}
592
593func durationCeil(value time.Duration, unit time.Duration) int64 {
594 if value <= 0 || unit <= 0 {
595 return 0
596 }
597 return int64((value + unit - 1) / unit)
598}
599
600func (c *Client) KVGet(ctx context.Context, key string) ([]byte, bool, error) {
601 cmd, errClient := c.commandClient()

Callers 1

buildKVSetArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected