Skip to content

Commit

Permalink
Rm var
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Fitié <jfitie@gmail.com>
  • Loading branch information
jfitie committed Sep 16, 2024
1 parent a1d0fa6 commit 203f18a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/DBMDataRef/DBMDataRef.vb
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,6 @@ Namespace Vitens.DynamicBandwidthMonitor
Dim rawValues As AFValues = Nothing
Dim result As DBMResult
Dim iR, iD As Integer ' Iterators for raw values and DBM results.
Dim statistics As DBMStatisticsItem

GetValues = New AFValues

Expand Down Expand Up @@ -964,9 +963,8 @@ Namespace Vitens.DynamicBandwidthMonitor
' reliable forecast can be made, check for and remove flatlines, and
' annotate the first value with model calibration metrics.
If Attribute.Trait Is LimitTarget And results.Count > 2 Then
statistics = Statistics(results)
If statistics.Calibrated Then GetValues = Deflatline(GetValues, results, Me.Step)
Annotate(GetValues.Item(0), statistics.Brief)
If Statistics(results).Calibrated Then GetValues = Deflatline(GetValues, results, Me.Step)
Annotate(GetValues.Item(0), Statistics(results).Brief)
End If

' Returns the collection of values for the attribute sorted in increasing
Expand Down

0 comments on commit 203f18a

Please # to comment.