mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
ADDED: nvmrc, CHANGED: rename stats output
This commit is contained in:
@@ -16,10 +16,10 @@ if (config.enableStats) {
|
|||||||
.listen(config.statsPort, '127.0.0.1');
|
.listen(config.statsPort, '127.0.0.1');
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.setLastScrape = (serviceName, numberFound) => {
|
exports.setLastScrape = (serviceName, numberOfNewListsings) => {
|
||||||
lastScrape[serviceName] = lastScrape[serviceName] || [];
|
lastScrape[serviceName] = lastScrape[serviceName] || [];
|
||||||
lastScrape[serviceName].push({
|
lastScrape[serviceName].push({
|
||||||
scapeTime: new Date().toString(),
|
scapeTime: new Date().toString(),
|
||||||
numberFound: numberFound
|
listingsFound: numberOfNewListsings
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user