Fix the core to check number of buckets
[samplevnf.git] / VNFs / DPPD-PROX / helper-scripts / rapid / rapid_irqtest.py
index f990a23..de7e6ae 100644 (file)
@@ -45,7 +45,7 @@ class IrqTest(RapidTest):
         max_loop_duration = 0
         machine_details = {}
         for machine in self.machines:
-            buckets=machine.socket.show_irq_buckets(1)
+            buckets=machine.socket.show_irq_buckets(machine.get_cores()[0])
             if max_loop_duration == 0:
                 # First time we go through the loop, we need to initialize
                 # result_details
@@ -102,5 +102,5 @@ class IrqTest(RapidTest):
                 core_details['Core {}'.format(row_names[j])] = row
             machine_details[machine.name] = core_details
         result_details['machine_data'] = machine_details
-        result_details = self.post_data('rapid_irqtest', result_details)
+        result_details = self.post_data(result_details)
         return (500000 - max_loop_duration, result_details)