aboutsummaryrefslogtreecommitdiffstats
path: root/translate.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-26 01:12:38 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-26 01:12:38 +0000
commit336b2bab79ba12498f4bc8e1a25a1cb1c365a98d (patch)
tree8b63b5ead3474af92ed666f75f6c926d66c0feaa /translate.c
parent701ba57042212fb040f92bd25f1ec3af40db2f43 (diff)
Fix 'show translations'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2249 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'translate.c')
-rwxr-xr-xtranslate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/translate.c b/translate.c
index c29788632..24ed38f79 100755
--- a/translate.c
+++ b/translate.c
@@ -265,14 +265,14 @@ static int show_translation(int fd, int argc, char *argv[])
strcpy(line, " ");
for (y=-1;y<SHOW_TRANS;y++) {
if (x >= 0 && y >= 0 && tr_matrix[x][y].step)
- snprintf(line + strlen(line), sizeof(line) - strlen(line), " %5d", tr_matrix[x][y].cost);
+ snprintf(line + strlen(line), sizeof(line) - strlen(line), " %5d", tr_matrix[x][y].cost >= 99999 ? tr_matrix[x][y].cost-99999 : tr_matrix[x][y].cost);
else
if (((x == -1 && y >= 0) || (y == -1 && x >= 0))) {
snprintf(line + strlen(line), sizeof(line) - strlen(line),
" %5s", ast_getformatname(1<<(x+y+1)) );
- } else if (x != -1 && y != -1 && y != 4) {
+ } else if (x != -1 && y != -1) {
snprintf(line + strlen(line), sizeof(line) - strlen(line), " -");
- } else if (y != 4) {
+ } else {
snprintf(line + strlen(line), sizeof(line) - strlen(line), " ");
}
}