Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Linegod committed Dec 1, 2023
1 parent e260400 commit 319f792
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cli/batchgapfix.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@

if ($rate > 0) {
$estimate = round($rrdfiles / $rate, 0);
$complate = ($end - $start) - $estimate;
$complete = ($end - $start) - $estimate;
} else {
$estimate = 'unknown';
}
Expand Down
20 changes: 10 additions & 10 deletions cli/rrdresize.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
}
}

$ds_superfluos_ids = array();
$ds_superfluous_ids = array();

if ($ds_mismatch == true) {
if ($ds_error == 'missing') {
Expand Down Expand Up @@ -488,12 +488,12 @@
$ds_names = array_keys($rrd_info['ds']);

foreach ($tmp_ds as $tmp_ds_name => $tmp_ds_settings) {
$ds_superfluos_ids += array_keys($ds_names, $tmp_ds_name, true);
$ds_superfluous_ids += array_keys($ds_names, $tmp_ds_name, true);
}

f_notify('DS COUNT');
f_notify(false, "\033[0;35m[MISMATCH]\033[0m");
f_log('[NOTICE] Superfluous data sources \'' . implode(',', $ds_superfluos_ids) . '\' found: ' . $file);
f_log('[NOTICE] Superfluous data sources \'' . implode(',', $ds_superfluous_ids) . '\' found: ' . $file);
} else {
f_notify('DS COUNT');
f_notify(false, "\033[0;32m[MATCH]\033[0m");
Expand Down Expand Up @@ -589,7 +589,7 @@
$i = 0;

foreach ($rrd_info['ds'] as $rrd_info_ds_name => $rrd_info_ds_settings) {
if (!in_array($i, $ds_superfluos_ids, true)) {
if (!in_array($i, $ds_superfluous_ids, true)) {
$rrd_new_ds_definition__ds_definition_template = "\t<ds>" . PHP_EOL .
"\t\t<name> " . $rrd_info_ds_name . ' </name>' . PHP_EOL .
"\t\t<type> " . $rrd_info_ds_settings['type'] . ' </type>' . PHP_EOL .
Expand Down Expand Up @@ -708,9 +708,9 @@
if (isset($rrd_data['rra'][$selected_archive_index]['database']['row'][$calculated_index]['v'])) {
$row_copy = $rrd_data['rra'][$selected_archive_index]['database']['row'][$calculated_index]['v'];

if (!empty($ds_superfluos_ids)) {
foreach ($ds_superfluos_ids as $ds_superfluos_id) {
unset($row_copy[$ds_superfluos_id]);
if (!empty($ds_superfluous_ids)) {
foreach ($ds_superfluous_ids as $ds_superfluous_id) {
unset($row_copy[$ds_superfluous_id]);
}
}

Expand Down Expand Up @@ -810,9 +810,9 @@
}
}

if (!empty($ds_superfluos_ids)) {
foreach ($ds_superfluos_ids as $ds_superfluos_id) {
unset($consolidated_ds_values[$ds_superfluos_id]);
if (!empty($ds_superfluous_ids)) {
foreach ($ds_superfluous_ids as $ds_superfluous_id) {
unset($consolidated_ds_values[$ds_superfluous_id]);
}
}
$rrd_new_body .= "\t\t\t<!-- " . date('Y-m-d H:i:s ', ($timestamp)) . 'GMT / ' . ($timestamp) . ' --> <row><v>' . implode('</v><v>', $consolidated_ds_values) . '</v></row>' . PHP_EOL;
Expand Down
6 changes: 3 additions & 3 deletions tests/tools/copyright_year.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ scan_folders() {
done

if [[ -n "$FOLDER_INCLUSION" ]]; then
SCRIPT_SEPERATOR=
SCRIPT_SEPARATOR=
if [ -n "$SCRIPT_INCLUSION" ]; then
SCRIPT_SEPERATOR="-a \( $SCRIPT_INCLUSION \)"
SCRIPT_SEPARATOR="-a \( $SCRIPT_INCLUSION \)"
fi
SCRIPT_INCLUSION="\( $FOLDER_INCLUSION $SCRIPT_SEPERATOR \)"
SCRIPT_INCLUSION="\( $FOLDER_INCLUSION $SCRIPT_SEPARATOR \)"
fi

SCRIPT_SEPARATOR=
Expand Down

0 comments on commit 319f792

Please sign in to comment.