Skip to content

Commit 0c08e24

Browse files
committed
Fixed some minor typos and pep8 violations
1 parent 169d07a commit 0c08e24

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

RpiCluster/RpiBasicSecondaryThread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RpiBasicSecondaryThread(threading.Thread):
1717
Attributes:
1818
uuid: A UUID to represent the secondary thread. This is assigned by the primary
1919
server_address: A tuple representing the IP address and port to use for the primary
20-
connection_handler: A connection handler object which will be used for sending/recieving messages.
20+
connection_handler: A connection handler object which will be used for sending/receiving messages.
2121
"""
2222

2323
def __init__(self, primary_ip, socket_port):

RpiCluster/RpiClusterClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RpiClusterClient(threading.Thread):
1616
Attributes:
1717
uuid: A random UUID created for the node to give everyone a random ID
1818
primary: a reference to the primary to get information from it
19-
connection_handler: A handler that manages recieving and sending messages in the payload format
19+
connection_handler: A handler that manages receiving and sending messages in the payload format
2020
address: Address of the client
2121
node_specifications: Details of the node if it provides it
2222

RpiCluster/Tasks/MachineInfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66

77
def get_base_machine_info():
8-
"""When called various interesting stastics about the machine are returned
8+
"""When called various interesting statistics about the machine are returned
99
1010
Currently this includes: hostname, cpu percentage, total ram, CPU name, number of cores the CPU has
1111
"""
1212
return {
13-
#TODO: Consider making this an object
13+
# TODO: Consider making this an object
1414
'hostname': socket.gethostname(),
1515
'cpu_percent_used': psutil.cpu_percent(1),
1616
'ram': psutil.virtual_memory().total,

0 commit comments

Comments
 (0)