e63d0d7aacf0f26dc0642732e97ec9f118c8f8e9,homeassistant/components/sensor/transmission.py,TransmissionSensor,update,#TransmissionSensor#,152
Before Change
if self.transmission_client.session:
if self.type == "download_speed":
mb_spd = float(self.transmission_client.session.downloadSpeed) / 1024 / 1024
self._state = round(mb_spd, 2 if mb_spd < 0.1 else 1)
elif self.type == "upload_speed":
mb_spd = float(self.transmission_client.session.uploadSpeed) / 1024 / 1024
self._state = round(mb_spd, 2 if mb_spd < 0.1 else 1)
After Change
if self.transmission_client.session:
if self.type == "download_speed":
mb_spd = float(self.transmission_client.session.downloadSpeed)
mb_spd = mb_spd / 1024 / 1024
self._state = round(mb_spd, 2 if mb_spd < 0.1 else 1)
elif self.type == "upload_speed":
mb_spd = float(self.transmission_client.session.uploadSpeed)
mb_spd = mb_spd / 1024 / 1024
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: home-assistant/home-assistant
Commit Name: e63d0d7aacf0f26dc0642732e97ec9f118c8f8e9
Time: 2015-04-07
Author: jamespcole@gmail.com
File Name: homeassistant/components/sensor/transmission.py
Class Name: TransmissionSensor
Method Name: update
Project Name: ray-project/ray
Commit Name: 935d8308fb2dea2124a49f01dd63fed6e6ed5439
Time: 2020-07-16
Author: sven@anyscale.io
File Name: rllib/utils/exploration/per_worker_gaussian_noise.py
Class Name: PerWorkerGaussianNoise
Method Name: __init__
Project Name: ray-project/ray
Commit Name: 935d8308fb2dea2124a49f01dd63fed6e6ed5439
Time: 2020-07-16
Author: sven@anyscale.io
File Name: rllib/utils/exploration/per_worker_ornstein_uhlenbeck_noise.py
Class Name: PerWorkerOrnsteinUhlenbeckNoise
Method Name: __init__