/systemd/src/shared/ |
H A D | specifier.c | 44 bool percent = false; local 60 if (percent) { 103 percent = false; 105 percent = true;
|
H A D | bus-util.c | 1422 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 D | fsck.c | 159 static double percent(int pass, unsigned long cur, unsigned long max) { function 232 p = percent(pass, cur, max);
|
/systemd/src/import/ |
H A D | export-raw.c | 131 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 D | export-tar.c | 137 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 D | import-raw.c | 152 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 D | import-tar.c | 159 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 D | pull-job.c | 474 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 D | pull-raw.c | 165 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 D | pull-tar.c | 169 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 D | importd.c | 580 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 D | string-util.c | 415 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 D | resolve-tool.c | 307 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 D | load-fragment.c | 2845 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);
|