mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
tree-wide: fix typo
This commit is contained in:
parent
bc4b9a7117
commit
5162b2a1c4
@ -80,7 +80,7 @@
|
||||
<listitem><para>A low power state where the system is initially suspended
|
||||
(the state is stored in RAM) and then hibernated based on battery percentage
|
||||
capacity. If the current battery capacity is higher than 5%, the system goes
|
||||
back to suspend for interval calculated using battery disharge rate per hour.
|
||||
back to suspend for interval calculated using battery discharge rate per hour.
|
||||
Battery discharge rate per hour is stored in a file which is created after
|
||||
initial suspend-resume cycle. The value is calculated using battery decreasing
|
||||
charge level a timespan. In case of manual wakeup before RTC alarm, the timespan
|
||||
|
@ -9,6 +9,6 @@
|
||||
* The argument must be a floating point, i.e. one of float, double, or long double. */
|
||||
#define iszero_safe(x) (fpclassify(x) == FP_ZERO)
|
||||
|
||||
/* To avoid x == y and triggering compile warning -Wfloat-equal. This retuns false if one of the argument is
|
||||
/* To avoid x == y and triggering compile warning -Wfloat-equal. This returns false if one of the argument is
|
||||
* NaN or infinity. One of the argument must be a floating point. */
|
||||
#define fp_equal(x, y) iszero_safe((x) - (y))
|
||||
|
@ -1920,7 +1920,7 @@ static int dns_transaction_make_packet_mdns(DnsTransaction *t) {
|
||||
ancount = be16toh(DNS_PACKET_HEADER(p)->ancount);
|
||||
}
|
||||
|
||||
/* Then, create acctual packet. */
|
||||
/* Then, create actual packet. */
|
||||
p = dns_packet_unref(p);
|
||||
r = dns_packet_new_query(&p, t->scope->protocol, 0, false);
|
||||
if (r < 0)
|
||||
|
@ -304,7 +304,7 @@ static int execute_s2h(const SleepConfig *sleep_config) {
|
||||
assert(previous_discharge_rate != 0);
|
||||
suspend_interval = usec_sub_unsigned(last_capacity * USEC_PER_HOUR / previous_discharge_rate, 30 * USEC_PER_MINUTE);
|
||||
/* The previous discharge rate is stored in per hour basis so converted to minutes.
|
||||
* Substracted 30 minutes from the result to keep a buffer of 30 minutes before battery gets critical */
|
||||
* Subtracted 30 minutes from the result to keep a buffer of 30 minutes before battery gets critical */
|
||||
}
|
||||
log_debug("Set timerfd wake alarm for %s", FORMAT_TIMESPAN(suspend_interval, USEC_PER_SEC));
|
||||
/* Wake alarm for system with or without battery to hibernate or estimate discharge rate whichever is applicable */
|
||||
|
@ -66,7 +66,7 @@ TEST(copy_tree_replace_file) {
|
||||
assert_se(write_string_file(src, "bar bar", WRITE_STRING_FILE_CREATE) == 0);
|
||||
assert_se(write_string_file(dst, "foo foo foo", WRITE_STRING_FILE_CREATE) == 0);
|
||||
|
||||
/* The file exists- now overwite original contents, and test the COPY_REPLACE flag. */
|
||||
/* The file exists- now overwrite original contents, and test the COPY_REPLACE flag. */
|
||||
|
||||
assert_se(copy_tree(src, dst, UID_INVALID, GID_INVALID, COPY_REFLINK) == -EEXIST);
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
# See tmpfiles.d(5) for details
|
||||
|
||||
# Provision additional loging messages from credentials, if they are set. Note
|
||||
# Provision additional login messages from credentials, if they are set. Note
|
||||
# that these lines are NOPs if the credentials are not set or if the files
|
||||
# already exist.
|
||||
f^ /etc/motd.d/50-provision.conf - - - - login.motd
|
||||
|
Loading…
Reference in New Issue
Block a user