diff --git a/.vs/AAWeb/v15/.suo b/.vs/AAWeb/v15/.suo index 10c8790d8..5a616276c 100644 Binary files a/.vs/AAWeb/v15/.suo and b/.vs/AAWeb/v15/.suo differ diff --git a/Files/FileCursorCache.js b/Files/DailyFiles.js similarity index 98% rename from Files/FileCursorCache.js rename to Files/DailyFiles.js index 30e6fd6a9..0e2dd4571 100644 --- a/Files/FileCursorCache.js +++ b/Files/DailyFiles.js @@ -1,7 +1,7 @@  -function newFileCursorCache() { +function newDailyFiles() { - const MODULE_NAME = "File Cursor Cache"; + const MODULE_NAME = "Daily Files"; const INFO_LOG = false; const logger = newDebugLog(); logger.fileName = MODULE_NAME; diff --git a/ProductStorage.js b/ProductStorage.js index 062db1e4b..41d5ae797 100644 --- a/ProductStorage.js +++ b/ProductStorage.js @@ -15,13 +15,12 @@ function newProductStorage(pName) { At the same time it will raise an event for each underlaying file being loaded, so that the UI can reflect the progress to the end user. Product Storage - | | |-----> File | |-----> FileSequence | - |-----> FileCursorCache -----> FileCursor + |-----> DailyFiles -----> FileCursor | |-----> MarketFiles @@ -30,7 +29,7 @@ function newProductStorage(pName) { let thisObject = { marketFiles: [], - fileCursorCache: [], + dailyFiles: [], file: [], fileSequence: [], @@ -86,9 +85,9 @@ function newProductStorage(pName) { if (INFO_LOG === true) { logger.write("[INFO] initialize -> Daily Files -> key = " + pDevTeam.codeName + "-" + pBot.codeName + "-" + pProduct.codeName); } - let fileCursorCache = newFileCursorCache(); - fileCursorCache.initialize(pDevTeam, pBot, pProduct, thisSet, pExchange, pMarket, pDatetime, pTimePeriod, onFileCursorReady); - thisObject.fileCursorCache.push(fileCursorCache); + let dailyFiles = newDailyFiles(); + dailyFiles.initialize(pDevTeam, pBot, pProduct, thisSet, pExchange, pMarket, pDatetime, pTimePeriod, onFileCursorReady); + thisObject.dailyFiles.push(dailyFiles); dataSetsToLoad++; } break; @@ -395,9 +394,9 @@ function newProductStorage(pName) { if (timePeriod <= _1_HOUR_IN_MILISECONDS) { - for (let i = 0; i < thisObject.fileCursorCache.length; i++) { + for (let i = 0; i < thisObject.dailyFiles.length; i++) { - thisObject.fileCursorCache[i].setDatetime(pDatetime); + thisObject.dailyFiles[i].setDatetime(pDatetime); } } } @@ -416,9 +415,9 @@ function newProductStorage(pName) { if (timePeriod <= _1_HOUR_IN_MILISECONDS) { - for (let i = 0; i < thisObject.fileCursorCache.length; i++) { + for (let i = 0; i < thisObject.dailyFiles.length; i++) { - thisObject.fileCursorCache[i].setTimePeriod(pTimePeriod, datetime); + thisObject.dailyFiles[i].setTimePeriod(pTimePeriod, datetime); } } } diff --git a/Project.njsproj b/Project.njsproj index cedfb0756..4eb805a34 100644 --- a/Project.njsproj +++ b/Project.njsproj @@ -68,7 +68,7 @@ Code - + Code diff --git a/index.html b/index.html index d0ea570e3..68ec64a90 100644 --- a/index.html +++ b/index.html @@ -69,7 +69,7 @@ - +