|
@@ -277,6 +277,11 @@ func InitModelSettings() {
|
|
|
CompletionRatioMutex.Unlock()
|
|
CompletionRatioMutex.Unlock()
|
|
|
|
|
|
|
|
// Initialize cacheRatioMap
|
|
// Initialize cacheRatioMap
|
|
|
|
|
+ cacheRatioMapMutex.Lock()
|
|
|
|
|
+ cacheRatioMap = defaultCreateCacheRatio
|
|
|
|
|
+ cacheRatioMapMutex.Unlock()
|
|
|
|
|
+
|
|
|
|
|
+ // initialize imageRatioMap
|
|
|
imageRatioMapMutex.Lock()
|
|
imageRatioMapMutex.Lock()
|
|
|
imageRatioMap = defaultImageRatio
|
|
imageRatioMap = defaultImageRatio
|
|
|
imageRatioMapMutex.Unlock()
|
|
imageRatioMapMutex.Unlock()
|