CC-3863: Stats should not send version number with extra characters
- fixed
This commit is contained in:
parent
4c317d1891
commit
01439663d9
1 changed files with 7 additions and 1 deletions
|
@ -412,10 +412,16 @@ class Application_Model_Preference
|
||||||
$key == 'FREE_RAM' || $key == 'AIRTIME_VERSION' || $key == 'KERNAL_VERSION' ||
|
$key == 'FREE_RAM' || $key == 'AIRTIME_VERSION' || $key == 'KERNAL_VERSION' ||
|
||||||
$key == 'MACHINE_ARCHITECTURE' || $key == 'TOTAL_MEMORY_MBYTES' || $key == 'TOTAL_SWAP_MBYTES' ||
|
$key == 'MACHINE_ARCHITECTURE' || $key == 'TOTAL_MEMORY_MBYTES' || $key == 'TOTAL_SWAP_MBYTES' ||
|
||||||
$key == 'PLAYOUT_ENGINE_CPU_PERC' ) {
|
$key == 'PLAYOUT_ENGINE_CPU_PERC' ) {
|
||||||
|
if($key == 'AIRTIME_VERSION'){
|
||||||
|
// remove hash tag on the version string
|
||||||
|
list($version, $dump) = explode('+', $info[1]);
|
||||||
|
$systemInfoArray[$key] = $version;
|
||||||
|
}else{
|
||||||
$systemInfoArray[$key] = $info[1];
|
$systemInfoArray[$key] = $info[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$outputArray = array();
|
$outputArray = array();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue