Searched defs:percent (Results 1 - 14 of 14) sorted by relevance

/systemd/src/shared/
H A Dspecifier.c44 bool percent = false; local
60 if (percent) {
103 percent = false;
105 percent = true;
H A Dbus-util.c1422 double percent; local
1424 if (sscanf(eq, "%lf%%", &percent) != 1 || percent <= 0) {
1429 r = sd_bus_message_append(m, "sv", "CPUQuotaPerSecUSec", "t", (usec_t) percent * USEC_PER_SEC / 100);
1431 log_error("CPU quota needs to be in percent.");
/systemd/src/fsck/
H A Dfsck.c159 static double percent(int pass, unsigned long cur, unsigned long max) { function
232 p = percent(pass, cur, max);
/systemd/src/import/
H A Dexport-raw.c131 unsigned percent; local
135 percent = 100;
137 percent = (unsigned) ((e->written_uncompressed * UINT64_C(100)) / (uint64_t) e->st.st_size);
139 if (percent == e->last_percent)
145 sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);
146 log_info("Exported %u%%.", percent);
148 e->last_percent = percent;
H A Dexport-tar.c137 unsigned percent; local
145 percent = 100;
147 percent = (unsigned) ((e->written_uncompressed * UINT64_C(100)) / e->quota_referenced);
149 if (percent == e->last_percent)
155 sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);
156 log_info("Exported %u%%.", percent);
158 e->last_percent = percent;
H A Dimport-raw.c152 unsigned percent; local
160 percent = 100;
162 percent = (unsigned) ((i->written_compressed * UINT64_C(100)) / (uint64_t) i->st.st_size);
164 if (percent == i->last_percent)
170 sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);
171 log_info("Imported %u%%.", percent);
173 i->last_percent = percent;
H A Dimport-tar.c159 unsigned percent; local
167 percent = 100;
169 percent = (unsigned) ((i->written_compressed * UINT64_C(100)) / (uint64_t) i->st.st_size);
171 if (percent == i->last_percent)
177 sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);
178 log_info("Imported %u%%.", percent);
180 i->last_percent = percent;
H A Dpull-job.c474 unsigned percent; local
482 percent = ((100 * dlnow) / dltotal);
486 percent != j->progress_percent &&
498 percent,
503 log_info("Got %u%% of %s.", percent, j->url);
505 j->progress_percent = percent;
H A Dpull-raw.c165 unsigned percent; local
174 percent = 0;
177 percent += i->settings_job->progress_percent * 5 / 100;
182 percent += i->checksum_job->progress_percent * 5 / 100;
187 percent += i->signature_job->progress_percent * 5 / 100;
192 percent += i->raw_job->progress_percent * remain / 100;
197 percent = 80;
201 percent = 85;
205 percent = 90;
209 percent
[all...]
H A Dpull-tar.c169 unsigned percent; local
178 percent = 0;
181 percent += i->settings_job->progress_percent * 5 / 100;
186 percent += i->checksum_job->progress_percent * 5 / 100;
191 percent += i->signature_job->progress_percent * 5 / 100;
196 percent += i->tar_job->progress_percent * remain / 100;
201 percent = 85;
205 percent = 90;
209 percent = 95;
216 sd_notifyf(false, "X_IMPORT_PROGRESS=%u", percent);
[all...]
H A Dimportd.c580 unsigned percent; local
636 r = safe_atou(p, &percent);
637 if (r < 0 || percent > 100) {
638 log_warning("Got invalid percent value, ignoring.");
642 t->progress_percent = percent;
644 log_debug("Got percentage from client: %u%%", percent);
/systemd/src/basic/
H A Dstring-util.c415 static char *ascii_ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent) { argument
420 assert(percent <= 100);
430 x = (new_length * percent) / 100;
446 char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent) { argument
454 assert(percent <= 100);
459 return ascii_ellipsize_mem(s, old_length, new_length, percent);
464 x = (new_length * percent) / 100;
521 char *ellipsize(const char *s, size_t length, unsigned percent) { argument
522 return ellipsize_mem(s, strlen(s), length, percent);
/systemd/src/resolve/
H A Dresolve-tool.c307 const char *percent, *a; local
311 percent = strchr(s, '%');
312 if (percent) {
313 if (parse_ifindex(percent+1, &ifi) < 0) {
314 ifi = if_nametoindex(percent+1);
319 a = strndupa(s, percent - s);
/systemd/src/core/
H A Dload-fragment.c2845 double percent; local
2861 if (sscanf(rvalue, "%lf%%", &percent) != 1 || percent <= 0) {
2866 c->cpu_quota_per_sec_usec = (usec_t) (percent * USEC_PER_SEC / 100);

Completed in 48 milliseconds