Make budget's "Sector building" line look better

Number of sectors were not aligned with the other lines.  While there,
print properly plurized "sector" instead of "sct(s)".
This commit is contained in:
Markus Armbruster 2009-02-20 19:47:28 +01:00
parent 44c36fa7d5
commit 1d1e789782
2 changed files with 5 additions and 3 deletions

View file

@ -133,8 +133,10 @@ budg(void)
}
if (p_sect[SCT_EFFIC][1]) {
pr("Sector building\t\t\t\t%8ld sct(s)\t\t%8ld\n",
p_sect[SCT_EFFIC][0], p_sect[SCT_EFFIC][1]);
sprintf(buf, "%ld sector%s",
p_sect[SCT_EFFIC][0], splur(p_sect[SCT_EFFIC][0]));
pr("Sector building\t\t\t%-16s\t\t%8ld\n",
buf, p_sect[SCT_EFFIC][1]);
expenses += p_sect[SCT_EFFIC][1];
}
if (p_sect[SCT_MAINT][0]) {