The syntax check of the MATH transforms issues an error message on transform "ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100". The syntax check is changed to accept this transform too.
It is verified that this patch fixes the described problem. However, there are a few remarks:
A) the operator 'x' is now handled differently from operator '.', while there is no reason, as far as I can see, to do so. Both "\s+" around the "x" operator can be replaced by "\s".
B) if the check is successfull, the result (in $temp) will be an emtpy string, and thus never contain blank spaces.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fix syntax check of MATH transform
I applied a different fix in r237, which seems to work.
Please verify that it is fixed.
http://devmon.svn.sourceforge.net/viewvc/devmon/trunk/modules/dm_templates.pm?r1=237&r2=236&pathrev=237
It is verified that this patch fixes the described problem. However, there are a few remarks:
A) the operator 'x' is now handled differently from operator '.', while there is no reason, as far as I can see, to do so. Both "\s+" around the "x" operator can be replaced by "\s".
B) if the check is successfull, the result (in $temp) will be an emtpy string, and thus never contain blank spaces.