Conversation
6eb8177 to
1d121a3
Compare
b954ad5 to
24f6d61
Compare
|
Tests are failing. I believe the reasoning for the exception is that I have test for both v1 and v2 which probably include the same source file. not sure on how to get rid of that one. |
|
I think its because its includes docker.inc.php twice, but this functions should be generic instead, and it probably exists one that already can do the work in some helper class |
37b49cf to
6b42f14
Compare
|
I moved the function to a separate helper class. Tests are also fixed so this MR is ready for review again. |
|
Would you mind moving your new class into a function in one of the existing helper classes? Number.php would be a good match I suppose. Also add a comment for the function what it does |
|
I have moved the conversion function to Number.php class as requested. |
|
@Jellyfrog are you able to give it an other review? |
| $version = intval($version); | ||
|
|
||
| if ($version == 1) { | ||
| $output = 'LEGACY'; |
There was a problem hiding this comment.
I took the dhcp stats as a reference: https://github.com/librenms/librenms/blob/master/includes/polling/applications/dhcp-stats.inc.php#L29
|
This pull request has been mentioned on LibreNMS Community. There might be relevant details there: |
This pull requests add extra stats for docker.
This includes
DO NOT DELETE THE UNDERLYING TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>, i.e./scripts/github-apply 5926After you are done testing, you can remove the changes with
./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.