mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Minor styleguide
This commit is contained in:
parent
2366df6057
commit
3d45d0bcf6
@ -175,7 +175,8 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRes
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Extract the version number of the running Icinga2 instance.
|
/* Extract the version number of the running Icinga2 instance.
|
||||||
* We assume that appVersion will allways be something like 'v2.10.1-8-gaebe6da' and we want to extract '2.10.1'. */
|
* We assume that appVersion will allways be something like 'v2.10.1-8-gaebe6da' and we want to extract '2.10.1'.
|
||||||
|
*/
|
||||||
int endOfVersionNumber = appVersion.FindFirstOf("-") - 1;
|
int endOfVersionNumber = appVersion.FindFirstOf("-") - 1;
|
||||||
String parsedAppVersion = appVersion.SubStr(1, endOfVersionNumber);
|
String parsedAppVersion = appVersion.SubStr(1, endOfVersionNumber);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user