Skip to content

Commit

Permalink
[#2819] Fixed remaining spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
fxdupont authored and tmarkwalder committed Dec 16, 2024
1 parent 5108d12 commit 3bc9a73
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/bin/dhcp4/tests/fqdn_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const char* CONFIGS[] = {
"}",
// 12
// D2 enabled
// ddns-ttl-percent specfied
// ddns-ttl-percent specified
"{ \"interfaces-config\": {\n"
" \"interfaces\": [ \"*\" ]\n"
"},\n"
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/dhcp/perfmon/monitored_duration.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DurationDataInterval {
/// Given a duration value:
/// -# Increment the number of occurrences
/// -# Add the duration to the total duration
/// -# Update the minimum and/or maxium duration accordingly
/// -# Update the minimum and/or maximum duration accordingly
///
/// @param duration Duration to add.
void addDuration(const Duration& duration);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dhcpsrv/dhcpsrv_messages.mes
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ life time, the calculated TTL, and the value actually used.
% DHCPSRV_DDNS_TTL_TOO_LARGE %1 of lease life time %2 is %3, using maximum of %4 instead.
Logged at debug log level 55.
A debug message issued when the DDNS TTL value calculated using the
ddns-ttl-percent if specfied or (0.33 if not) is larger than the
ddns-ttl-percent if specified or (0.33 if not) is larger than the
the specified value of ddns-ttl-max. Kea will ignore the value and
use the specified maximum instead. The message details include
the percentage, the lease life time, the calculated TTL, and the value
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dhcpsrv/ncr_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ uint32_t calculateDdnsTtl(uint32_t lease_lft,
uint32_t ttl = static_cast<uint32_t>(round(ttl_percent * lease_lft));

// Adjust for minimum and maximum.
// If we have a custom mininum enforce it, otherwise per RFC 4702 it
// If we have a custom minimum enforce it, otherwise per RFC 4702 it
// should not less than 600.
uint32_t ttl_min = (ddns_ttl_min.get() > 0) ? ddns_ttl_min.get() : 600;
if (ttl < ttl_min) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/dhcpsrv/tests/ncr_generator_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ TEST_F(NCRGenerator4Test, calculateDdnsTtlThroughQueueNcr) {
// No modifiers, should be RFC % (i.e lft / 3)
{ __LINE__, 2100, no_percent, no_ttl, no_min, no_max, 700 },

// No modifiers, RFC % < RFC minium 600
// No modifiers, RFC % < RFC minimum 600
{ __LINE__, 1500, no_percent, no_ttl, no_min, no_max, 600 },

// RFC % < specified minimum
Expand All @@ -764,7 +764,7 @@ TEST_F(NCRGenerator4Test, calculateDdnsTtlThroughQueueNcr) {
// Explicit ttl wins over specified minimum
{ __LINE__, 2100, no_percent, 900, 1000, no_max, 900 },

// Explicit ttl wins over specified maxiumum
// Explicit ttl wins over specified maximum
{ __LINE__, 2100, no_percent, 900, no_min, 800, 900 },

// Specified percent > RFC minimum
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class SharedNetworkParserTest : public LogContentTest {
}
}

// Verifies invalid permatations of ddns-ttl-percent, ddns-ttl,
// Verifies invalid permutations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for SharedNetwork.
template<typename ParserType>
void invalidDdnsTtlParmatersTest() {
Expand Down
12 changes: 6 additions & 6 deletions src/lib/util/encode/encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ class BaseNEncoder {
return (max_pad_);
}

/// @brief Get the maxium index value of the digit set
/// @brief Get the maximum index value of the digit set
///
/// @return Maxium index value of the digit set
/// @return Maximum index value of the digit set
size_t getMaxBitsToDigit() {
return (max_bits_to_digit_);
}

/// @brief Get the maxium index value of the algorithm bit table
/// @brief Get the maximum index value of the algorithm bit table
///
/// @return Maxium index value of the algorithm bit table
/// @return Maximum index value of the algorithm bit table
size_t getMaxDigitToBits() {
return (max_digit_to_bits_);
}
Expand Down Expand Up @@ -179,10 +179,10 @@ class BaseNEncoder {
/// @brief Indicates whether or not the algorithm's digit set is case-sensitive
bool case_sensitive_;

/// @brief Maxium index value of the digit set
/// @brief Maximum index value of the digit set
size_t max_bits_to_digit_;

/// @brief Maxium index value of the algorithm bit table
/// @brief Maximum index value of the algorithm bit table
size_t max_digit_to_bits_;
};

Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/str.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ dumpAsHex(const uint8_t* data, size_t length);
/// @brief Converts a double to a string with given precision
///
/// @param val double to convert
/// @param precision number of maxium number decimal places to output
/// @param precision number of maximum number decimal places to output
/// @return string representation of val
std::string dumpDouble(double val, size_t precision = 5);

Expand Down

0 comments on commit 3bc9a73

Please sign in to comment.