fprintf
(outfile,
"shared net name first ip last ip max cur percent touch t+c t+c perc");
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, " bu bu perc");
}
fprintf(outfile, "\n");
range_p->count)) /
(range_p->last_ip - range_p->first_ip -
1));
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, "%7lu %8.3f",
range_p->backups,
(float) (100 * range_p->backups) /
fprintf(outfile, "Shared networks:\n");
fprintf(outfile,
"name max cur percent touch t+c t+c perc");
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, " bu bu perc");
}
fprintf(outfile, "\n");
(shared_p->touched +
shared_p->used)) /
shared_p->available);
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, "%7lu %8.3f",
shared_p->backups,
(float) (100 * shared_p->backups) /
fprintf(outfile,
"name max cur percent touch t+c t+c perc");
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, " bu bu perc");
}
fprintf(outfile, "\n");
shared_networks->used)) /
shared_networks->available);
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, "%7lu %8.3f",
shared_networks->backups,
(float) (100 * shared_networks->backups) /
output_line(outfile, "th", "ralign", "touch");
output_line(outfile, "th", "ralign", "t+c");
output_line(outfile, "th", "ralign", "t+c perc");
- if (num_backups > 0) {
+ if (0 < num_backups) {
output_line(outfile, "th", "ralign", "bu");
output_line(outfile, "th", "ralign", "bu perc");
}
range_p->count)) /
(range_p->last_ip -
range_p->first_ip - 1));
- if (num_backups > 0) {
+ if (0 < num_backups) {
output_long(outfile, "td",
range_p->backups);
output_float(outfile, "td",
output_line(outfile, "th", "ralign", "touch");
output_line(outfile, "th", "ralign", "t+c");
output_line(outfile, "th", "ralign", "t+c perc");
- if (num_backups > 0) {
+ if (0 < num_backups) {
output_line(outfile, "th", "ralign", "bu");
output_line(outfile, "th", "ralign", "bu perc");
}
(shared_p->touched +
shared_p->used)) /
shared_p->available);
- if (num_backups > 0) {
+ if (0 < num_backups) {
output_long(outfile, "td",
shared_p->backups);
output_float(outfile, "td",
output_line(outfile, "th", "ralign", "touch");
output_line(outfile, "th", "ralign", "t+c");
output_line(outfile, "th", "ralign", "t+c perc");
- if (num_backups > 0) {
+ if (0 < num_backups) {
output_line(outfile, "th", "ralign", "bu");
output_line(outfile, "th", "ralign", "bu perc");
}
(shared_networks->touched +
shared_networks->used)) /
shared_networks->available);
- if (num_backups > 0) {
+ if (0 < num_backups) {
output_long(outfile, "td",
shared_networks->backups);
output_float(outfile, "td",
fprintf
(outfile,
"\"shared net name\",\"first ip\",\"last ip\",\"max\",\"cur\",\"percent\",\"touch\",\"t+c\",\"t+c perc\"");
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, ",\"bu\",\"bu perc\"");
}
fprintf(outfile, "\n");
range_p->count)) /
(range_p->last_ip - range_p->first_ip -
1));
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, ",\"%lu\",\"%.3f\"",
range_p->backups,
(float) (100 * range_p->backups) /
fprintf(outfile, "\"Shared networks:\"\n");
fprintf(outfile,
"\"name\",\"max\",\"cur\",\"percent\",\"touch\",\"t+c\",\"t+c perc\"");
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, ",\"bu\",\"bu perc\"");
}
fprintf(outfile, "\n");
(shared_p->touched +
shared_p->used)) /
shared_p->available);
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, ",\"%lu\",\"%.3f\"",
shared_p->backups,
(float) (100 * shared_p->backups) /
fprintf(outfile, "\"Sum of all ranges:\"\n");
fprintf(outfile,
"\"name\",\"max\",\"cur\",\"percent\",\"touch\",\"t+c\",\"t+c perc\"");
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, ",\"bu\",\"bu perc\"");
}
fprintf(outfile, "\n");
(shared_networks->touched +
shared_networks->used)) /
shared_networks->available);
- if (num_backups > 0) {
+ if (0 < num_backups) {
fprintf(outfile, "%7lu %8.3f",
shared_networks->backups,
(float) (100 * shared_networks->backups) /