Merge pull request #792 from shocknet/latest-limit
default latest limit
This commit is contained in:
commit
1e1a05b232
2 changed files with 2 additions and 4 deletions
|
|
@ -25,8 +25,6 @@ export default class {
|
|||
process.on('exit', () => {
|
||||
this.persistCache()
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
getlast24hCache = () => { return this.last24hCache }
|
||||
|
|
@ -78,7 +76,7 @@ export default class {
|
|||
|
||||
}
|
||||
|
||||
LoadLatestMetrics = async (limit = 100): Promise<Types.UsageMetrics> => {
|
||||
LoadLatestMetrics = async (limit = 30): Promise<Types.UsageMetrics> => {
|
||||
const raw = this.tlvStorage.LoadLatest(limit)
|
||||
const metrics: Types.UsageMetrics = { apps: {} }
|
||||
Object.keys(raw).forEach(app => {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export class TlvFilesStorage {
|
|||
this.pending[appId][dataName].tlvs.push(tlv)
|
||||
}
|
||||
|
||||
LoadLatest = (limit = 100): LatestData => {
|
||||
LoadLatest = (limit = 30): LatestData => {
|
||||
this.persist()
|
||||
const data: LatestData = {}
|
||||
this.foreachFile((app, dataName, tlvFiles) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue