Timeline for Collect and calculate average times from log, then display top 10 longest durations
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 28, 2014 at 16:22 | answer | added | the_lotus | timeline score: 1 | |
| Mar 4, 2014 at 21:09 | answer | added | Mathieu Guindon | timeline score: 7 | |
| Mar 4, 2014 at 17:08 | comment | added | Liesmith | Sorry, I couldn't fit this on the above comment: I tried building the outages in a single loop through the searchedlist, but I couldn't figure out how to effectively keep track of each outage for each site as the loop progressed. For instance if Site A is down at 18:59, Site B is down at 18:59, Site C is down at 19:00 Site B is up at 19:00, Site B is down at 19:01, how do I keep track of each site's individual outages in just one loop? In this example, site B has multiple outages before site A or Site C ever come up. I think there must be a way to handle this that I'm just not familiar with. | |
| Mar 4, 2014 at 16:49 | comment | added | Liesmith | "entry" and "outage" are both public structures I created (I'm sorry if that's not specific enough; I don't know a more detailed way of describing it without pasting the whole thing), and "searchedlist" is just a list of the "entry" structures. I did it this way so the user can narrow their search to a specific site or timeframe before initiating the averaging and graphing subs (such as the one I included in the question) in the hopes of cutting down the time necessary for graphing. | |
| Mar 4, 2014 at 7:29 | answer | added | Jerry Coffin | timeline score: 7 | |
| Mar 4, 2014 at 2:10 | comment | added | user33306 | What does the data look like in searchedlist? What kind of class is entry? What does the outage class look like? One way to help cut down on the loops is keep a record of each siteid's status in a collection. Read through the searchedlist once and as each siteid gets a down then and up record that outage time for that siteid. | |
| Mar 3, 2014 at 23:27 | history | edited | Liesmith | CC BY-SA 3.0 | Corrected typo in title. |
| Mar 3, 2014 at 23:22 | review | First posts | |||
| Mar 3, 2014 at 23:31 | |||||
| Mar 3, 2014 at 23:11 | history | edited | Jamal | CC BY-SA 3.0 | Moved questions below explanations; removed "thanks" |
| Mar 3, 2014 at 23:09 | history | edited | syb0rg | CC BY-SA 3.0 | Better title. |
| Mar 3, 2014 at 23:06 | history | asked | Liesmith | CC BY-SA 3.0 |