Don't allow a sample to be both unscheduled and obstructed
Doesn't ever seem to happen, but in case it does in the future, treat that case as just unscheduled. This way, the unclassified ping loss (AKA "Beta downtime") can be computed from the totals.
This commit is contained in:
parent
4ff6cfb5fa
commit
a5036db9e0
2 changed files with 8 additions and 2 deletions
|
@ -150,7 +150,10 @@ for i in sampleRange:
|
||||||
totUnschedD += d
|
totUnschedD += d
|
||||||
if d >= 1:
|
if d >= 1:
|
||||||
totUnschedOne += d
|
totUnschedOne += d
|
||||||
if historyData.obstructed[i]:
|
# scheduled=false and obstructed=true do not ever appear to overlap,
|
||||||
|
# but in case they do in the future, treat that as just unscheduled
|
||||||
|
# in order to avoid double-counting it.
|
||||||
|
elif historyData.obstructed[i]:
|
||||||
totObstruct += 1
|
totObstruct += 1
|
||||||
totObstructD += d
|
totObstructD += d
|
||||||
if d >= 1:
|
if d >= 1:
|
||||||
|
|
|
@ -153,7 +153,10 @@ for i in sampleRange:
|
||||||
totUnschedD += d
|
totUnschedD += d
|
||||||
if d >= 1:
|
if d >= 1:
|
||||||
totUnschedOne += d
|
totUnschedOne += d
|
||||||
if historyData["obstructed"][i]:
|
# scheduled=false and obstructed=true do not ever appear to overlap,
|
||||||
|
# but in case they do in the future, treat that as just unscheduled
|
||||||
|
# in order to avoid double-counting it.
|
||||||
|
elif historyData["obstructed"][i]:
|
||||||
totObstruct += 1
|
totObstruct += 1
|
||||||
totObstructD += d
|
totObstructD += d
|
||||||
if d >= 1:
|
if d >= 1:
|
||||||
|
|
Loading…
Reference in a new issue