ADDED: nvmrc, CHANGED: rename stats output

This commit is contained in:
Christian Kellner
2018-01-22 13:05:20 +01:00
parent 220f9ec7d6
commit ddce90a047
2 changed files with 3 additions and 2 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
8

View File

@@ -16,10 +16,10 @@ if (config.enableStats) {
.listen(config.statsPort, '127.0.0.1');
}
exports.setLastScrape = (serviceName, numberFound) => {
exports.setLastScrape = (serviceName, numberOfNewListsings) => {
lastScrape[serviceName] = lastScrape[serviceName] || [];
lastScrape[serviceName].push({
scapeTime: new Date().toString(),
numberFound: numberFound
listingsFound: numberOfNewListsings
});
};