We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfc50ec commit 118e1f6Copy full SHA for 118e1f6
lib/GLPI/Agent/SOAP/VMware/Host.pm
@@ -448,7 +448,10 @@ sub getVirtualMachines {
448
}
449
450
unless (empty($machine->{summary}{runtime}{bootTime})) {
451
- $vmInventory->{OPERATINGSYSTEM}->{BOOT_TIME} = $machine->{summary}{runtime}{bootTime};
+ my ($bootdate, $boottime) =
452
+ $machine->{summary}{runtime}{bootTime} =~ /^([0-9-]+).(\d+:\d+:\d+)/;
453
+ $boottime = "$bootdate $boottime" if $bootdate && $boottime;
454
+ $vmInventory->{OPERATINGSYSTEM}->{BOOT_TIME} = $boottime if $boottime;
455
456
457
0 commit comments