[Erp5-report] r45974 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/src/erp5/util...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 6 16:23:13 CEST 2011


Author: arnaud.fontaine
Date: Wed Jul  6 16:23:13 2011
New Revision: 45974

URL: http://svn.erp5.org?rev=45974&view=rev
Log:
Handle range of users for the ERP5 benchmark title.

Modified:
    erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py

Modified: erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py?rev=45974&r1=45973&r2=45974&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py [utf8] (original)
+++ erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/benchmark.py [utf8] Wed Jul  6 16:23:13 2011
@@ -355,9 +355,13 @@ class ERP5BenchmarkResult(BenchmarkResul
                                                verbose=True,
                                                allow_none=True)
 
-    # TODO: range of users?
+    if isinstance(nb_users, tuple):
+      nb_users_str = '%d to %d' % nb_users
+    else:
+      nb_users_str = '%d' % nb_users
+
     benchmark_result = test_result_module.TestResultModule_addBenchmarkResult(
-      '%d repeat with %d concurrent users' % (repeat, nb_users),
+      '%d repeat with %s concurrent users' % (repeat, nb_users_str),
       publish_project, ' '.join(sys.argv), datetime.datetime.now())
 
     return benchmark_result['id']



More information about the Erp5-report mailing list