Broadband Related > Router Monitoring Software

Query about the stats.log file data created by DSLStats

(1/2) > >>

broadstairs:
I have been looking for an easy way to see how many ES both up and down I get on my line per day and display the daily totals using a PHP script. I noticed that there are two values in stats.log one for ES DS and one for ES US at position 41 and 42 respectively, however these seem to be a cumulative total and not the total for the day in question. I had expected them to reflect the total for that 24 hour period. Was this intentional or an error? Are they perhaps the total since the last re-sync or some other value?

Stuart

roseway:
Positions 45 and 46 contain downstream and upstream ES delta values (i.e. the difference between the previous sample and the current sample).

It's done this way because the stats log is based on the log produced by HG612_Modem_Stats. MDWS started off as an extension for that program, and I was invited to join in later.

broadstairs:
Yes I already use those values for the graphs. I was hoping the two at 41 & 42 held the 24 hour totals. So in order to get the 24 hour totals I have to read all entries in each stats.log and add up the individual values which makes doing this for all days I have data for somewhat heavy processing! Oh well it's only CPU cycles I suppose.

Stuart

Westie:

--- Quote from: broadstairs on January 19, 2019, 07:59:34 PM ---So in order to get the 24 hour totals I have to read all entries in each stats.log and add up the individual values

--- End quote ---
...or subtract the previous day's cumulative from the current one. Still a slog, but only 4.2% of the work!

broadstairs:

--- Quote from: Westie on January 19, 2019, 09:08:54 PM ---...or subtract the previous day's cumulative from the current one. Still a slog, but only 4.2% of the work!

--- End quote ---

Not quite that simple as I have no idea when the values get reset as the don't reflect the absolute total for all time!

Stuart

Navigation

[0] Message Index

[#] Next page

Go to full version