Cleanup of unused functions:
- is_valid_email()
- timer_start()
- timer_end()
- strip_newlines()
Small refactor in cacti_log():
- reduce function calls for read_config_option()
- refactor of loglevel if statement
- unnecessary parentheses
- syslog section refactor
- strpos() is 33% quicker than substr_count() in this case
draw_navigation_text():
- get result in 1 query instead of 2
auth.php:
- placed result of get_selected_theme() in var
functions.php:
- mailer():
- fetch date from setting by caching method
- read_config_option('settings_from_email') unnecessary
- 2x undefined function $mail->replyTo() (should be addReplyTo())
- calculate_percentiles()
- Final return statement has undeclared variable; I believe this should be results instead of result, but could not reproduce
index.php:
- only fetch the fields needed for querying external_links
- 2x </td> instead of </tr>
* the $index_recache string already contains the / separator. I don't need to add in preg_match function
* some errors in the methods to take in count the storage of the modified value
* a cosmetic change that permit to clean the debug value in debug_log_return function after the display
* a change in poller function that fixe an error when your index field in the XML file is a fake index oid
Back to original way of generating absolute paths. Relative paths needed for RRDproxy will be generated on the fly within /lib/rrd.php.
No need to rebuilt the poller cache after changing the data storage.
Part of multiple polling is to support either MySQL replication, or to
replicate tables requred for remote data collection. These changes will
enable the later method, but are not complete.
The replicate_tables in lib/poller.php function is designed to handle
each of the table replecation types. When complete, it will handle all
table replication based upon poller state.
There may be additional table schema changes to increase performance,
but those changes have not been validated yet.
PT-BR: Quando um device sai do ar o sistema está carregando a data inicial do sistema. Corrigi o bug para que, quando a data está vazia, ele pega a data do sistema.