Première version fonctionnelle. --- non testée ---
This commit is contained in:
@@ -79,7 +79,7 @@ unsigned int CGraphItem::DisplayData(quint64 StartTime, quint64 StopTime)
|
||||
|
||||
//Find the index of the first and last point in the timespan.
|
||||
int StartIndex = 0, StopIndex = 0;
|
||||
quint64 StartDeltaTime, StopDeltaTime;
|
||||
//quint64 StartDeltaTime, StopDeltaTime;
|
||||
int i = 0;
|
||||
bool StartFound = false, StopFound = false;
|
||||
while(StartFound == false || StopFound == false)
|
||||
@@ -94,13 +94,13 @@ unsigned int CGraphItem::DisplayData(quint64 StartTime, quint64 StopTime)
|
||||
if(CurTime <= StartTime)
|
||||
{
|
||||
StartIndex = i;
|
||||
StartDeltaTime = CurTime - StartTime;
|
||||
// StartDeltaTime = CurTime - StartTime;
|
||||
StartFound = true;
|
||||
}
|
||||
if(CurTime >= StopTime && !StopFound)
|
||||
{
|
||||
StopIndex = i;
|
||||
StopDeltaTime = StopTime - mDataSet->at(StopIndex)->mTime;
|
||||
// StopDeltaTime = StopTime - mDataSet->at(StopIndex)->mTime;
|
||||
StopFound = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user