mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 10:46:26 +00:00
prevent garbage value loaded as value in LogGroup::getValueAtTime
This commit is contained in:
parent
8315f95a8c
commit
2f328f6697
@ -1312,8 +1312,11 @@ int LogGroup::getValueAtTime( const char *paramName,
|
||||
// Get the value at time
|
||||
rr = log[yLogIdx]->getValueAtTime(tIdx, time,
|
||||
yIdx, &vv) ;
|
||||
*value = vv ;
|
||||
|
||||
// If value with timestamp found
|
||||
if(rr > 0){
|
||||
*value = vv ;
|
||||
}
|
||||
|
||||
return(rr);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user