Giter Club home page Giter Club logo

mops-projekt's Introduction

Hi!

I'm a full-stack developer, with a deep love for Go and TypeScript.
I'm usually the most active on Wednesdays here on Github.
To find out more about my work, look at my website,
my blog, the blog's source code (check it out, it has continuous deployment set up!), or my beloved project, notipie
(I even wrote a thesis about it).

I'm constantly looking for new ways to make software development more efficient.
As Dave Farley said1 and wrote2 many times, I'm trying to "do what works to build better software faster".

Footnotes

  1. D. Farley, What It Takes To Be A Software Engineer, (Dec. 01, 2021). Accessed: Jan. 07, 2023. [Online Video]. Available: https://youtu.be/TRqYQnCfgH8

  2. D. Farley, Modern Software Engineering: Doing What Works to Build Better Software Faster. Addison-Wesley, 2021.

mops-projekt's People

Contributors

batmatt avatar kovalskj avatar sewera avatar

Watchers

 avatar

mops-projekt's Issues

Implement main simulation process

We create all packets from all sources with time and boolean if they go to the 2nd server. When packets arrive in 1st server we sort them and add handling time. We create a new stream of all not dropped packets and save their sending time. We create all packets from new sources that go to the 2nd server. We sort all packets from all streams by time and add handling time to all.

Check if second queue is working properly

I've got results:

{"avg_queue_length_Q1": 147.51875248706725, "avg_queue_waiting_time_Q1": 145.32611467328152, "avg_delay_Q1": 146.3261146732814, "avg_load_Q1": 1.017560884567374, "avg_queue_length_Q2": 0.0, "avg_queue_waiting_time_Q2": 0.0, "avg_delay_Q2": 1.0, "avg_load_Q2": 0.20167202655218355}

for params:

python3 main.py -l 2 -t 10000.0 -g 1 -q 0.5 -n 5 -d 4

Handle division by zero in data_reader

Right now, when there's no packets in the second queue, there's an error:

Traceback (most recent call last):
  File "/home/jazz/cloud/studia/2020-2021/mops/projekt/src/main.py", line 141, in <module>
    main()
  File "/home/jazz/cloud/studia/2020-2021/mops/projekt/src/main.py", line 137, in main
    data_reader.show_average_server_load_Q2(queue_two.packets_passed)
  File "/home/jazz/cloud/studia/2020-2021/mops/projekt/src/data_reader.py", line 79, in show_average_server_load_Q2
    av_time_between_in_queue = sum(vals) / len(vals)
ZeroDivisionError: division by zero

It should be handled so that it doesn't crash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.