Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Linegod committed Nov 17, 2024
1 parent 2237c29 commit a2c4d83
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/api_automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5206,7 +5206,7 @@ function automation_snmp_option_export($snmp_option_ids) {
}

function automation_validate_upload() {
/* check file tranfer if used */
/* check file transfer if used */
if (isset($_FILES['import_file'])) {
/* check for errors first */
if ($_FILES['import_file']['error'] != 0) {
Expand Down Expand Up @@ -5342,7 +5342,7 @@ function automation_network_import($json_data) {
$error = false;
$save = array();

foreach ($json_data['network'] as $netowrk => $data) {
foreach ($json_data['network'] as $network => $data) {
if (isset($data['snmp'])) {
$debug_data += automation_snmp_option_import($data['snmp']);
unset($data['snmp']);
Expand Down
4 changes: 2 additions & 2 deletions lib/api_device.php
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ function api_device_update_host_template(int $device_id, int $device_template_id
}

/**
* api_device_change_field_match - Checks the global $device_change_fileds array
* api_device_change_field_match - Checks the global $device_change_fields array
* against the field name and returns true or false if it matches the rule
*
* This function can be used by plugins to allow the modification of additional
Expand Down Expand Up @@ -1929,7 +1929,7 @@ function api_clone_get_unique_filename($file_name) {

/**
* api_clone_device_template_check_for_errors - This function will validate the
* intput and return warnings and errors before allowing users to proceed. This
* input and return warnings and errors before allowing users to proceed. This
* option is skipped when using the quiet option.
*
* @param int - The device template id to be cloned
Expand Down
4 changes: 2 additions & 2 deletions lib/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function generate_report($report, $force = false) {
}
}

/** reports_load_format_file read the format file from disk and determines it's formating
/** reports_load_format_file read the format file from disk and determines it's formatting
* @param string $format_file - the file to read from the formats directory
* @param string $output - the html and css output from that file
* @param bool $report_tag_included - a boolean that informs the caller if the report tag is present
Expand Down Expand Up @@ -1588,7 +1588,7 @@ function reports_expand_tree(&$report, $item, $parent, $output, $format_ok, $the
/* render each graph for the current data query index */
if (isset($snmp_index_to_graph[$snmp_index])) {
foreach ($snmp_index_to_graph[$snmp_index] as $local_graph_id => $graph_title) {
/* reformat the array so it's compatable with the html_graph* area functions */
/* reformat the array so it's compatible with the html_graph* area functions */
array_push($graph_list, array('local_graph_id' => $local_graph_id, 'title_cache' => $graph_title));
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1240,13 +1240,13 @@ function utilities_get_mysql_recommendations() {
'value' => '25',
'measure' => 'pmem',
'class' => 'warning',
'comment' => __('InnoDB will hold as much tables and indexes in system memory as is possible. Therefore, you should make the innodb_buffer_pool large enough to hold as much of the tables and index in memory. Checking the size of the /var/lib/mysql/cacti directory will help in determining this value. We are recommending 25%% of your systems total memory, but your requirements will vary depending on your systems size. If you database is very large or remote, you can consider increasing this size. If remote, it can by as high as 80% of the systems memory. However, cautions must be taken to reduce the swapiness of the system, or to remove swap to keep the system from swapping.')
'comment' => __('InnoDB will hold as much tables and indexes in system memory as is possible. Therefore, you should make the innodb_buffer_pool large enough to hold as much of the tables and index in memory. Checking the size of the /var/lib/mysql/cacti directory will help in determining this value. We are recommending 25%% of your systems total memory, but your requirements will vary depending on your systems size. If you database is very large or remote, you can consider increasing this size. If remote, it can by as high as 80% of the systems memory. However, cautions must be taken to reduce the swappiness of the system, or to remove swap to keep the system from swapping.')
),
'innodb_doublewrite' => array(
'value' => 'ON',
'measure' => 'equalint',
'class' => 'error',
'comment' => __('This settings should remain ON unless your Cacti instances is running on either ZFS or FusionI/O which both have internal journaling to accomodate abrupt system crashes. However, if you have very good power, and your systems rarely go down and you have backups, turning this setting to OFF can net you almost a 50% increase in database performance.')
'comment' => __('This settings should remain ON unless your Cacti instances is running on either ZFS or FusionI/O which both have internal journaling to accommodate abrupt system crashes. However, if you have very good power, and your systems rarely go down and you have backups, turning this setting to OFF can net you almost a 50% increase in database performance.')
),
'innodb_additional_mem_pool_size' => array(
'value' => '80M',
Expand Down

0 comments on commit a2c4d83

Please sign in to comment.