Skip to content

Commit 97b42b6

Browse files
committed
update alarm severity comment and doc
1 parent 0a5e8cd commit 97b42b6

File tree

2 files changed

+5
-3
lines changed
  • app/display

2 files changed

+5
-3
lines changed

app/display/editor/doc/rules.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ of the rule are accessible in the expression.
4444

4545
- A PV severity value is referenced using the syntax pvSev{index}, e.g. pvSev0 == 1. Severity values are:
4646

47-
- -1 - Invalid
48-
4947
- 0 - OK
5048

5149
- 1 - Minor
5250

5351
- 2 - Major
5452

53+
- 3 - Invalid
54+
55+
- 4 - Undefined
56+
5557
Value as Expression
5658
-------------------
5759

app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/script/PVUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public final static long getTimeInMilliseconds(final RuntimePV pv) throws NullPo
202202

203203
/** Get alarm severity of the PV as an integer value.
204204
* @param pv PV
205-
* @return 0: OK; 1: Major; 2:Minor, -1: Invalid or Undefined
205+
* @return 0: OK; 1: Major; 2:Minor; 3: Invalid; 4: Undefined
206206
*/
207207
public final static int getSeverity(final RuntimePV pv)
208208
{

0 commit comments

Comments
 (0)