Commit fde8503cf8b79868945acea9485bf2e514268be1

Authored by Adhidarma Hadiwinoto
1 parent c54970f60a
Exists in master

a little optimizer

Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff

... ... @@ -16,19 +16,20 @@ if (config.handler_name) {
16 16 process.title = "KOMODO-GW@" + config.handler_name;
17 17 }
18 18  
  19 +matrix.sdk_pending_tasks_count = 0;
  20 +matrix.sdk_unresponsed_tasks_count = 0;
  21 +matrix.sdk_pending_with_response_tasks_count = 0;
  22 +
19 23 if (!matrix.sdk_pending_tasks) {
20 24 matrix.sdk_pending_tasks = [];
21   - matrix.sdk_pending_tasks_count = 0;
22 25 }
23 26  
24 27 if (!matrix.sdk_unresponsed_tasks) {
25 28 matrix.sdk_unresponsed_tasks = [];
26   - matrix.sdk_unresponsed_tasks_count = 0;
27 29 }
28 30  
29 31 if (!matrix.sdk_pending_with_response_tasks) {
30 32 matrix.sdk_pending_with_response_tasks = [];
31   - matrix.sdk_pending_with_response_tasks_count = 0;
32 33 }
33 34  
34 35 heartbeat.setModuleType('gateway');