MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / seconds_until_ms

Function seconds_until_ms

crates/openshell-server/src/provider_refresh.rs:266–271  ·  view source on GitHub ↗
(now_ms: i64, target_ms: i64)

Source from the content-addressed store, hash-verified

264}
265
266fn seconds_until_ms(now_ms: i64, target_ms: i64) -> i64 {
267 if target_ms <= 0 {
268 return 0;
269 }
270 target_ms.saturating_sub(now_ms).max(0) / 1000
271}
272
273pub fn refresh_strategy_name(strategy: i32) -> &'static str {
274 match ProviderCredentialRefreshStrategy::try_from(strategy)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected