Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: tools-webrtc/network_emulator/config.py

Issue 2584433002: Create top-level dir tools-webrtc and start moving things into it. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools-webrtc/matlab/rtpAnalyze.m ('k') | tools-webrtc/network_emulator/emulate.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """Configuration class for network emulation.""" 10 """Configuration class for network emulation."""
(...skipping 16 matching lines...) Expand all
27 """String representing the configuration. 27 """String representing the configuration.
28 28
29 Returns: 29 Returns:
30 A string formatted and padded like this example: 30 A string formatted and padded like this example:
31 12 Name 375 kbps 375 kbps 10 145 ms 0.1 % 31 12 Name 375 kbps 375 kbps 10 145 ms 0.1 %
32 """ 32 """
33 left_aligned_name = self.name.ljust(24, ' ') 33 left_aligned_name = self.name.ljust(24, ' ')
34 return '%2s %24s %5s kbps %5s kbps %4s %5s ms %3s %%' % ( 34 return '%2s %24s %5s kbps %5s kbps %4s %5s ms %3s %%' % (
35 self.num, left_aligned_name, self.receive_bw_kbps, self.send_bw_kbps, 35 self.num, left_aligned_name, self.receive_bw_kbps, self.send_bw_kbps,
36 self.queue_slots, self.delay_ms, self.packet_loss_percent) 36 self.queue_slots, self.delay_ms, self.packet_loss_percent)
OLDNEW
« no previous file with comments | « tools-webrtc/matlab/rtpAnalyze.m ('k') | tools-webrtc/network_emulator/emulate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698