Skip to content

Commit 953977a

Browse files
committed
fix the version comparison for the agent update process so that the agents get notified if a new version is available
1 parent 20f760e commit 953977a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inc/api/APICheckClientVersion.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function execute($QUERY = array()) {
2424
}
2525

2626
$this->updateAgent(PActions::CHECK_CLIENT_VERSION);
27-
if (Comparator::lessThan($result->getVersion(), $version)) {
27+
if (Comparator::greaterThan($result->getVersion(), $version)) {
2828
DServerLog::log(DServerLog::DEBUG, "Agent " . $this->agent->getId() . " got notified about client update");
2929
$this->sendResponse(array(
3030
PResponseClientUpdate::ACTION => PActions::CHECK_CLIENT_VERSION,

0 commit comments

Comments
 (0)