summaryrefslogtreecommitdiff
path: root/src/import/import-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/import-raw.c
parent7bf081a1e59d2ac4941f24d27c6d7647c5ed703b (diff)
downloadsystemd-5ac1530eca652cd16819853fe06e76e156f5cf5e.tar.gz
systemd-5ac1530eca652cd16819853fe06e76e156f5cf5e.tar.bz2
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/import-raw.c')
-rw-r--r--src/import/import-raw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/import/import-raw.c b/src/import/import-raw.c
index dc73387bc2..a12a6d63b1 100644
--- a/src/import/import-raw.c
+++ b/src/import/import-raw.c
@@ -57,7 +57,7 @@ struct RawImport {
struct stat st;
unsigned last_percent;
- RateLimit progress_rate_limit;
+ RateLimit progress_ratelimit;
};
RawImport* raw_import_unref(RawImport *i) {
@@ -111,7 +111,7 @@ int raw_import_new(
.userdata = userdata,
.last_percent = (unsigned) -1,
.image_root = TAKE_PTR(root),
- .progress_rate_limit = { 100 * USEC_PER_MSEC, 1 },
+ .progress_ratelimit = { 100 * USEC_PER_MSEC, 1 },
};
if (event)
@@ -143,7 +143,7 @@ static void raw_import_report_progress(RawImport *i) {
if (percent == i->last_percent)
return;
- if (!ratelimit_below(&i->progress_rate_limit))
+ if (!ratelimit_below(&i->progress_ratelimit))
return;
sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);