Added an 'independent' option for set identites that will put them under the
[distributedratelimiting.git] / drl / samplehold.c
index f98e5df..9a30995 100644 (file)
@@ -379,6 +379,10 @@ void sampled_table_update_flows(sampled_flow_table table, struct timeval now, do
         }
     }
 
+    if (table->common->num_flows > 0) {
+        table->common->avg_rate = table->common->rate / table->common->num_flows;
+    }
+
     table->common->max_flow_rate = largest_rate;
 }