mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3548 from geordish/update-docs-and-fix-rule
Update docs and fix rule
This commit is contained in:
@@ -564,6 +564,12 @@ All macros that are not unary should return Boolean.
|
||||
|
||||
You can only apply _Equal_ or _Not-Equal_ Operations on Boolean-macros where `True` is represented by `"1"` and `False` by `"0"`.
|
||||
|
||||
Note, if using a /, spaces must be inserted around it.
|
||||
|
||||
Example
|
||||
```php
|
||||
((%ports.ifInOctets_rate*8) / %ports.ifSpeed)*100
|
||||
```
|
||||
|
||||
## <a name="macros-device">Device</a> (Boolean)
|
||||
|
||||
@@ -627,7 +633,7 @@ Entity: `%macros.port_usage_perc`
|
||||
|
||||
Description: Return port-usage in percent.
|
||||
|
||||
Source: `((%ports.ifInOctets_rate*8)/%ports.ifSpeed)*100`
|
||||
Source: `((%ports.ifInOctets_rate*8) / %ports.ifSpeed)*100`
|
||||
|
||||
## <a name="macros-time">Time</a>
|
||||
|
||||
|
2
sql-schema/115.sql
Normal file
2
sql-schema/115.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
UPDATE `config` SET `config_value` = '((%ports.ifInOctets_rate*8) / %ports.ifSpeed)*100' WHERE `config_value` = '((%ports.ifInOctets_rate*8)/%ports.ifSpeed)*100';
|
||||
UPDATE `config` SET `config_default` = '((%ports.ifInOctets_rate*8) / %ports.ifSpeed)*100' WHERE `config_default` = '((%ports.ifInOctets_rate*8)/%ports.ifSpeed)*100';
|
Reference in New Issue
Block a user