Added APST and MPST fields that control whether monitors are fired if the
new string is identical to the old one. Default value is "On Change" with behaviour identical to before, set to "Always" to fire monitors every time the record is processed (analagous to setting MDEL=-1 for numeric record types).
This commit is contained in:
@@ -163,6 +163,10 @@ static void monitor(pstringin)
|
||||
monitor_mask |= DBE_VALUE|DBE_LOG;
|
||||
strncpy(pstringin->oval,pstringin->val,sizeof(pstringin->val));
|
||||
}
|
||||
if (pstringin->mpst == stringinPOST_Always)
|
||||
monitor_mask |= DBE_VALUE;
|
||||
if (pstringin->apst == stringinPOST_Always)
|
||||
monitor_mask |= DBE_LOG;
|
||||
if(monitor_mask)
|
||||
db_post_events(pstringin,&(pstringin->val[0]),monitor_mask);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user