Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Jan 17, 2017
1 parent da3c713 commit cfc5c87
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tcconfig/traffic_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,17 @@ def __validate_netem_parameter(self):
self.__validate_packet_loss_rate()
self.__validate_corruption_rate()

param_list = [
netem_param_value_list = [
self.bandwidth_rate,
self.latency_ms,
self.packet_loss_rate,
self.corruption_rate,
]

if all([
not FloatType(value).is_type() or value == 0
for value in param_list
not FloatType(
netem_param_value).is_type() or netem_param_value == 0
for netem_param_value in netem_param_value_list
]):
raise ValueError("there is no valid net emulation parameter")

Expand Down

0 comments on commit cfc5c87

Please sign in to comment.