提交修改dashboard关键字

This commit is contained in:
lyf
2020-09-01 18:11:51 +08:00
parent e9e809e1a8
commit 3fb928c080
2 changed files with 14 additions and 2 deletions

View File

@@ -332,7 +332,15 @@ ClientIPTopN-new
${retourn} intersection ${responselist} ${responselist1} ${retourn} intersection ${responselist} ${responselist1}
Should Be True "${retourn}"=="ture" Should Be True "${retourn}"=="ture"
ClientIPTopN-new-if ClientIPTopN-new-if
${responselist} create list 0 0 0 0 0 0 0 0 ${list2} create list
${list3} create list
${list4} create list
${list5} create list
${list6} create list
${list7} create list
${list8} create list
${list9} create list
${responselist} create list {list2} ${list3} ${list4} ${list5} ${list6} ${list7} ${list8} ${list9}
[Return] ${responselist} [Return] ${responselist}
ClientIPTopN-new-else ClientIPTopN-new-else
@@ -484,7 +492,9 @@ SecurityEventpolicyidtopHit-new
${retourn} intersection ${responselist} ${responselist1} ${retourn} intersection ${responselist} ${responselist1}
Should Be True "${retourn}"=="ture" Should Be True "${retourn}"=="ture"
SecurityEventpolicyidtopHit-new-if SecurityEventpolicyidtopHit-new-if
${responselist} create list 0 0 0 ${list2} create list
${list3} create list
${responselist} create list ${list2} ${list3}
[Return] ${responselist} [Return] ${responselist}
SecurityEventpolicyidtopHit-new-else SecurityEventpolicyidtopHit-new-else

View File

@@ -72,6 +72,8 @@ class GetTime():
d = len(b)*len(b[0]) d = len(b)*len(b[0])
if d == 0: if d == 0:
e=0 e=0
elif c==0:
e = 0
else: else:
e = c/d e = c/d
if e >= 0.8 : if e >= 0.8 :