Add BIENNIALLY & TRIENNIALLY stats on TaskMonitor #3721
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, i love your work with Hestia and i cannot pay to you so good work!! But here is my first pull request :-)
I like consult TaskMonitor to see load, memory, etc. of my servers. And i have both of them with just more than 2 years of use of hestia... so i decided to dedicate my day to add to new BUTTONS on TaskMonitor: BIENNIALLY and TRIENNIALLY (besides to daily, weekly, monthly and yearly).
The "change" is quite easy. I've only searched where appeared "yearly" on the source code of Hestia and added the 2 new options. I've tested it on both servers of mine and it works "fine".
Well, in fact, i've modified (in the pull request):
but on production server i had to apply the same modification to this other minimized file:
I suspect that this second file is generated from you when creating the stable branch or the release of the new stable version. Am i wrong? I mean, i think that i had not to do it, right? Tell me how please... because i really have no experience minimizing files.
Another comment
I know that you changed the graph library for this kind of charts. So i suspect that these other files are now obsolete and could be removed?
I've not removed it!! i only mention it to remember to you that maybe they could be removed. Because, for example in my case, i've "wasting" one hour until understand that modifying these files the graphs on TaskMonitor didn't changed! :_(
Last comment: translation?
This is my first direct collaboration with your project... i don't know where you manage translations... so i only added that 2 buttons so here
/usr/local/hestia/web/templates/pages/list_rrd.php
: