secgroup / ctforge

Forge your own CTF
GNU Affero General Public License v3.0
45 stars 10 forks source link

Scoreboard graph #5

Open anklinv opened 5 years ago

anklinv commented 5 years ago

I have a small issue with the scoreboard graph: For some reason it seems to be displaying the score per team per round instead of combining the rounds for all teams (can be seen on the screenshot). It looks like that is unintended. Do you have any idea what could be causing this and how I can fix it?

error_scoreboard

I am using the challenge-ad branch. I created the teams by directly inserting them into the database. ctf_stats/300 returns this json file:

{
  "asdasd": {
    "0": 0.0, 
    "1": 0.0, 
    "2": 0.0
  }, 
  "asdgd": {
    "0": 0.0, 
    "1": 0.0, 
    "2": 0.0
  }, 
  "hsas": {
    "0": 0.0, 
    "1": 0.0, 
    "2": 0.0
  }, 
  "team1": {
    "0": 0.0, 
    "1": 2.23606797749979, 
    "2": 2.23606797749979
  }, 
  "team2": {
    "0": 0.0, 
    "1": 0.0, 
    "2": 0.0
  }
}

Let me know if you need more information on the exact setup I am using.

Thanks!

lavish commented 5 years ago

Hi, I don't see anything wrong with the graph you reported, it represents exactly what is the score of each team over the time. Can you tell us what did you expect to be shown so that we can figure out what is the issue here, eventually? Thanks!

anklinv commented 5 years ago

Thanks for the reply. What I would expect is that the axis with rounds would have a single tick for each round instead of one tick per team per round. Here is a better example of what I mean:

error_scoreboard2

On the image, I would expect on the x-axis to only have the value 6 once and not 5 times (only 3 are labeled). Also the ends of the score graph to be at the same "round value", as it now looks as if team5 would be ahead of the others.

Maybe there is a good reason why it is displayed like this, but it is not as I would expect.