Skip to content

Commit eca3500

Browse files
authored
Merge pull request #53 from Tuto96/patch-1
Update synced_event.py
2 parents bca8896 + 3e351dc commit eca3500

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dhalsim/network_events/synced_event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def db_query(self, query, write=False, parameters=None):
107107
"""
108108
Execute a query on the database
109109
On a :code:`sqlite3.OperationalError` it will retry with a max of :code:`DB_TRIES` tries.
110-
Before it reties, it will sleep for :code:`DB_SLEEP_TIME` seconds.
110+
Before it retries, it will sleep for :code:`DB_SLEEP_TIME` seconds.
111111
This is necessary because of the limited concurrency in SQLite.
112112
113113
:param query: The SQL query to execute in the db
@@ -147,7 +147,7 @@ def get_master_clock(self):
147147
"""
148148
Get the value of the master clock of the physical process through the database.
149149
On a :code:`sqlite3.OperationalError` it will retry with a max of :code:`DB_TRIES` tries.
150-
Before it reties, it will sleep for :code:`DB_SLEEP_TIME` seconds.
150+
Before it retries, it will sleep for :code:`DB_SLEEP_TIME` seconds.
151151
152152
:return: Iteration in the physical process.
153153
@@ -185,7 +185,7 @@ def get_sync(self, flag):
185185
"""
186186
Get the sync flag of this plc.
187187
On a :code:`sqlite3.OperationalError` it will retry with a max of :code:`DB_TRIES` tries.
188-
Before it reties, it will sleep for :code:`DB_SLEEP_TIME` seconds.
188+
Before it retries, it will sleep for :code:`DB_SLEEP_TIME` seconds.
189189
190190
:return: False if physical process wants the plc to do a iteration, True if not.
191191
@@ -200,7 +200,7 @@ def set_sync(self, flag):
200200
Set this plcs sync flag in the sync table. When this is 1, the physical process
201201
knows this plc finished the requested iteration.
202202
On a :code:`sqlite3.OperationalError` it will retry with a max of :code:`DB_TRIES` tries.
203-
Before it reties, it will sleep for :code:`DB_SLEEP_TIME` seconds.
203+
Before it retries, it will sleep for :code:`DB_SLEEP_TIME` seconds.
204204
205205
:param flag: True for sync to 1, False for sync to 0
206206
:type flag: bool

0 commit comments

Comments
 (0)