Skip to content

Commit

Permalink
Update project.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
xLPMG authored Feb 5, 2024
1 parent 6b477ef commit d1c9179
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/files/assignments/project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
In the project phase we decided to implement a user-friendly Gui. The aim was to make the usage of our Tsunami solver
as easy and interactive as possible.

All authors contributed in equal parts.

*********************
Preface
*********************
Expand Down Expand Up @@ -103,7 +105,7 @@ Linux

``getCPUUsage()`` reads from ``/proc/stat`` and calculates the CPU usage based on the values in that file.
It provides us with info for each core on how much time it spent in different states (user, system, idle, etc.).
The time is measures in jiffies, which are typically 1/100th of a second.
The time is measured in jiffies, which are typically 1/100th of a second.
The server reads this file every 10 milliseconds and calculates the CPU usage based on the difference between the current and the last read.

``getRAMUsage()`` makes use of the ``sysinfo.h`` linux header file. It would've been possible to read from ``/proc/meminfo`` however we would have needed to parse the file and collect the correct value ourselves.
Expand Down Expand Up @@ -218,5 +220,4 @@ Communicator API
Since all communication happens using text over TCP, we had to implement a structure that both server and client can adhere to
in order to guarantee correct communication. For this, we decided to send all data in JSON format and a ``Message`` struct.


.. note:: For further information, see :ref:`ns-lib`

0 comments on commit d1c9179

Please sign in to comment.