mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 03:57:40 +00:00
gui: ceph: fix version comparison
'>' on strings is not numeric, so we use our compare_ceph_versions helper Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c0c2e40161
commit
4f71a0ff0a
@ -59,7 +59,7 @@ Ext.define('PVE.ceph.Services', {
|
||||
var services = ['mon','mgr','mds'];
|
||||
var maxversion = "00.0.00";
|
||||
Object.values(metadata.version || {}).forEach(function(version) {
|
||||
if (version > maxversion) {
|
||||
if (PVE.Utils.compare_ceph_versions(version, maxversion) > 0) {
|
||||
maxversion = version;
|
||||
}
|
||||
});
|
||||
|
@ -193,7 +193,7 @@ Ext.define('PVE.ceph.StatusDetail', {
|
||||
|
||||
var maxversion = "00.0.00";
|
||||
Object.values(metadata.version || {}).forEach(function(version) {
|
||||
if (version > maxversion) {
|
||||
if (PVE.Utils.compare_ceph_versions(version, maxversion) > 0) {
|
||||
maxversion = version;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user