Skip to content

Commit c5f94b8

Browse files
committed
Testing Scenario
1 parent 8907822 commit c5f94b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

EE238_Common/src/Common/Configuration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public enum Configuration {
2828
private final int _lowerThreshold = (int) (this._maxBufferSize * .2);
2929

3030
// The rate (In Packets/Second) to send
31-
private final int _packetRate = 300;
31+
private final int _packetRate = 400;
3232

3333
// Conversion from Seconds to Milliseconds
3434
private final int SEC_TO_MILLISEC = 1000;
@@ -63,7 +63,7 @@ public enum Configuration {
6363
// The sleep rate to meter how many packets the encoder sends per
6464
// millisecond
6565
// and nanosecond
66-
private SleepTime _encoderSleepTime = new SleepTime(this._packetRate);
66+
private SleepTime _encoderSleepTime = new SleepTime(this._packetRate * 1.00000000000000011);
6767

6868
// The Attenuation factor to increase/decrease the output rate
6969
private final double _attenuationFactor = 0.02;

EE238_Decoder/src/MarkovState/MarkovStateLow.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class MarkovStateLow extends AbstractMarkovState {
1616
@Override
1717
public void updateSleepTime() {
1818
// Same as Rate - (Rate * Attenuation Factor)
19-
double slowedRate = (1 - Configuration.INSTANCE.getAttenuationFactor())
19+
double slowedRate = (1.0 - Configuration.INSTANCE.getAttenuationFactor())
2020
* Configuration.INSTANCE.getPacketRate();
2121

2222
super.updateSleepTime(slowedRate);

0 commit comments

Comments
 (0)