mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 23:28:14 +00:00
ensure metadata exists on events
This commit is contained in:
@ -41,7 +41,10 @@ class EventMetadataProvider {
|
||||
{
|
||||
key: 'message',
|
||||
name: 'Message',
|
||||
format: 'string'
|
||||
format: 'string',
|
||||
hints: {
|
||||
label: 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ class EventTelemetryProvider {
|
||||
|
||||
generateData(firstObservedTime, count, startTime, duration, name) {
|
||||
const millisecondsSinceStart = startTime - firstObservedTime;
|
||||
const randomFewSeconds = Math.floor(Math.random() * 10000);
|
||||
const randomFewSeconds = Math.floor(Math.random() * 1000);
|
||||
const utc = startTime + count + randomFewSeconds * duration;
|
||||
const ind = count % messages.length;
|
||||
const message = messages[ind] + ' - [' + millisecondsSinceStart + ']';
|
||||
|
Reference in New Issue
Block a user