From 5ac1530eca652cd16819853fe06e76e156f5cf5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 19 Sep 2019 17:49:14 +0200 Subject: 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. --- src/import/import-raw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/import/import-raw.c') 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); -- cgit v1.2.1