[asterisk-commits] rizzo: trunk r47829 - in /trunk: main/ res/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Nov 18 13:17:06 MST 2006
Author: rizzo
Date: Sat Nov 18 14:17:06 2006
New Revision: 47829
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47829
Log:
ESS-ification.
no need to bring this in 1.4, it is just code cleanup
Modified:
trunk/main/cdr.c
trunk/res/res_features.c
trunk/res/res_realtime.c
Modified: trunk/main/cdr.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cdr.c?view=diff&rev=47829&r1=47828&r2=47829
==============================================================================
--- trunk/main/cdr.c (original)
+++ trunk/main/cdr.c Sat Nov 18 14:17:06 2006
@@ -984,10 +984,10 @@
nextbatchtime = ast_sched_when(sched, cdr_sched);
ast_cli(fd, "CDR safe shut down: %s\n", batchsafeshutdown ? "enabled" : "disabled");
ast_cli(fd, "CDR batch threading model: %s\n", batchscheduleronly ? "scheduler only" : "scheduler plus separate threads");
- ast_cli(fd, "CDR current batch size: %d record%s\n", cnt, (cnt != 1) ? "s" : "");
- ast_cli(fd, "CDR maximum batch size: %d record%s\n", batchsize, (batchsize != 1) ? "s" : "");
- ast_cli(fd, "CDR maximum batch time: %d second%s\n", batchtime, (batchtime != 1) ? "s" : "");
- ast_cli(fd, "CDR next scheduled batch processing time: %ld second%s\n", nextbatchtime, (nextbatchtime != 1) ? "s" : "");
+ ast_cli(fd, "CDR current batch size: %d record%s\n", cnt, ESS(cnt));
+ ast_cli(fd, "CDR maximum batch size: %d record%s\n", batchsize, ESS(batchsize));
+ ast_cli(fd, "CDR maximum batch time: %d second%s\n", batchtime, ESS(batchtime));
+ ast_cli(fd, "CDR next scheduled batch processing time: %ld second%s\n", nextbatchtime, ESS(nextbatchtime));
}
AST_LIST_LOCK(&be_list);
AST_LIST_TRAVERSE(&be_list, beitem, list) {
Modified: trunk/res/res_features.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_features.c?view=diff&rev=47829&r1=47828&r2=47829
==============================================================================
--- trunk/res/res_features.c (original)
+++ trunk/res/res_features.c Sat Nov 18 14:17:06 2006
@@ -1917,7 +1917,7 @@
numparked++;
}
ast_mutex_unlock(&parking_lock);
- ast_cli(fd, "%d parked call%s.\n", numparked, (numparked != 1) ? "s" : "");
+ ast_cli(fd, "%d parked call%s.\n", numparked, ESS(numparked));
return RESULT_SUCCESS;
Modified: trunk/res/res_realtime.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_realtime.c?view=diff&rev=47829&r1=47828&r2=47829
==============================================================================
--- trunk/res/res_realtime.c (original)
+++ trunk/res/res_realtime.c Sat Nov 18 14:17:06 2006
@@ -88,7 +88,7 @@
return RESULT_SUCCESS;
}
- ast_cli(fd, "Updated %d RealTime record%s.\n", res, (res != 1) ? "s" : "");
+ ast_cli(fd, "Updated %d RealTime record%s.\n", res, ESS(res));
return RESULT_SUCCESS;
}
More information about the asterisk-commits
mailing list