3ad426916f203c5b96afa08a1ba627cad38d2d33,pwnagotchi/mesh/peer.py,Peer,__init__,#Peer#Any#,8
Before Change
self.first_seen = time.time()
self.last_seen = self.first_seen
self.session_id = obj["session_id"]
self.last_channel = obj["channel"]
self.rssi = obj["rssi"]
self.adv = obj["advertisement"]
def update(self, new):
After Change
class Peer(object):
def __init__(self, obj):
now = time.time()
just_met = datetime.now().strftime("%Y-%m-%dT%H:%M:%S")
self.first_met = parse_rfc3339(obj.get("met_at", just_met))
self.first_seen = parse_rfc3339(obj.get("detected_at", just_met))
self.prev_seen = parse_rfc3339(obj.get("prev_seen_at", just_met))
self.last_seen = now // should be seen_at
self.encounters = obj.get("encounters", 0)
self.session_id = obj.get("session_id", "")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: evilsocket/pwnagotchi
Commit Name: 3ad426916f203c5b96afa08a1ba627cad38d2d33
Time: 2019-10-23
Author: evilsocket@gmail.com
File Name: pwnagotchi/mesh/peer.py
Class Name: Peer
Method Name: __init__
Project Name: pfnet/optuna
Commit Name: 1b12a45ddd604bdcbb01ef7016e6da491e8d3c10
Time: 2020-05-21
Author: ytsmiling@gmail.com
File Name: optuna/storages/cached_storage.py
Class Name: _CachedStorage
Method Name: set_trial_state
Project Name: OpenMined/Grid
Commit Name: 0bce5765b02513a167e454f112a61bd70d47d6ff
Time: 2020-03-02
Author: ionesiojr@gmail.com
File Name: gateway/app/main/processes/controller.py
Class Name: FLController
Method Name: create_cycle