mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
[Example] Limit telemetry responses to 5000 records
Update example telemetry providers to limit the number of datums generated so that queries for long time ranges will not cause undesired behavior in demos.
This commit is contained in:
parent
82a661b884
commit
5243b3748d
@ -103,7 +103,7 @@
|
||||
|
||||
var data = [];
|
||||
|
||||
for (; nextStep < end; nextStep += step) {
|
||||
for (; nextStep < end && data.length < 5000; nextStep += step) {
|
||||
data.push({
|
||||
utc: nextStep,
|
||||
yesterday: nextStep - 60*60*24*1000,
|
||||
|
@ -79,7 +79,7 @@ define([
|
||||
var start = options.start;
|
||||
var end = options.end;
|
||||
var data = [];
|
||||
while (start < end) {
|
||||
while (start < end && data.length < 5000) {
|
||||
data.push(pointForTimestamp(start));
|
||||
start += 5000;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user