MCPcopy Create free account
hub / github.com/boostorg/build / cache_maxage

Function cache_maxage

src/engine/hcache.c:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 */
108
109static int cache_maxage( void )
110{
111 int age = 100;
112 LIST * const var = var_get( root_module(), constant_HCACHEMAXAGE );
113 if ( !list_empty( var ) )
114 {
115 age = atoi( object_str( list_front( var ) ) );
116 if ( age < 0 )
117 age = 0;
118 }
119 return age;
120}
121
122
123/*

Callers 1

hcache_doneFunction · 0.85

Calls 3

var_getFunction · 0.85
root_moduleFunction · 0.85
object_strFunction · 0.85

Tested by

no test coverage detected