mirror of
https://github.com/nasa/openmct.git
synced 2025-01-12 07:52:42 +00:00
Merge pull request #1675 from nasa/limit-example-telemetry-response-sizes
[Example] Limit telemetry responses to 5000 records
This commit is contained in:
commit
ae461f71b4
@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
var data = [];
|
var data = [];
|
||||||
|
|
||||||
for (; nextStep < end; nextStep += step) {
|
for (; nextStep < end && data.length < 5000; nextStep += step) {
|
||||||
data.push({
|
data.push({
|
||||||
utc: nextStep,
|
utc: nextStep,
|
||||||
yesterday: nextStep - 60*60*24*1000,
|
yesterday: nextStep - 60*60*24*1000,
|
||||||
|
@ -79,7 +79,7 @@ define([
|
|||||||
var start = options.start;
|
var start = options.start;
|
||||||
var end = options.end;
|
var end = options.end;
|
||||||
var data = [];
|
var data = [];
|
||||||
while (start < end) {
|
while (start < end && data.length < 5000) {
|
||||||
data.push(pointForTimestamp(start));
|
data.push(pointForTimestamp(start));
|
||||||
start += 5000;
|
start += 5000;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user