[X2go-bugs] [Tickets #32] db_getservers doesn't parse output correctly

bugs at x2go.org bugs at x2go.org
Thu Feb 3 20:52:23 CET 2011


Ticket URL: http://code.x2go.org/horde4/whups/ticket/?id=32
------------------------------------------------------------------------------
  Ticket             | 32
  Created By         | schulz at math.uni-goettingen.de
  Summary            | db_getservers doesn't parse output correctly
  Queue              | x2goserver
  Version            | 3.0.99
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Operating System   | 1
  Owners             |
------------------------------------------------------------------------------


schulz at math.uni-goettingen.de (2011-02-03 20:52) wrote:

the function db_getservers /usr/lib/x2go/x2godbwrapper.pm  only parses  
the first column of the sql-output resulting only in servernames but  
not the counts of the sessions. This breaks sorting the servers for  
loadbalancing regarding number of sessions per host.
fix is simple:

426c425
< 		   @strings[$i++]=@data[0];
---
> 		   @strings[$i++]=@data[0].' '. at data[1];








More information about the x2go-bugs mailing list