summaryrefslogtreecommitdiffstats
path: root/src/import/export-raw.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-19 17:49:14 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-20 16:05:53 +0200
commit5ac1530eca652cd16819853fe06e76e156f5cf5e (patch)
tree34b57a84fa54bb1a1963d07ab273cd094a430ad6 /src/import/export-raw.c
parentpid1: rename start_limit to start_ratelimit (diff)
downloadsystemd-5ac1530eca652cd16819853fe06e76e156f5cf5e.tar.xz
systemd-5ac1530eca652cd16819853fe06e76e156f5cf5e.zip
tree-wide: say "ratelimit" not "rate_limit"
"ratelimit" is a real word, so we don't need to use the other form anywhere. We had both forms in various places, let's standarize on the shorter and more correct one.
Diffstat (limited to 'src/import/export-raw.c')
-rw-r--r--src/import/export-raw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/import/export-raw.c b/src/import/export-raw.c
index 57b4334a65..d76f3c0519 100644
--- a/src/import/export-raw.c
+++ b/src/import/export-raw.c
@@ -49,7 +49,7 @@ struct RawExport {
uint64_t written_uncompressed;
unsigned last_percent;
- RateLimit progress_rate_limit;
+ RateLimit progress_ratelimit;
struct stat st;
@@ -96,7 +96,7 @@ int raw_export_new(
.on_finished = on_finished,
.userdata = userdata,
.last_percent = (unsigned) -1,
- .progress_rate_limit = { 100 * USEC_PER_MSEC, 1 },
+ .progress_ratelimit = { 100 * USEC_PER_MSEC, 1 },
};
if (event)
@@ -124,7 +124,7 @@ static void raw_export_report_progress(RawExport *e) {
if (percent == e->last_percent)
return;
- if (!ratelimit_below(&e->progress_rate_limit))
+ if (!ratelimit_below(&e->progress_ratelimit))
return;
sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);