weikang_Hu_9799
Nov 27, 2007Nimbostratus
Got a negative integer which returned by getLow();
As the structure defined as below . high/low are unsigned integer .
struct Common.ULong64 {
long high;
long low;
};
However, I got a negative integer ..
low= -752457817
high= 1
result = -752457817
my code as below and can someone help me to solve it ?
public long getVSInfo(String[] vs_list) throws Exception
{
String[] Server_Names = m_binding.get_list();
iControl.LocalLBVirtualServerVirtualServerStatistics Statistics_list = m_binding.get_statistics(vs_list);
iControl.LocalLBVirtualServerVirtualServerStatisticEntry[] StatEntry = Statistics_list.getStatistics();
iControl.CommonStatistic[] commonstat=null;
for (int j=0;j{
commonstat= StatEntry[j].getStatistics();
}
long myresult = (commonstat[5].getValue().getHigh()<<32)|commonstat[5].getValue().getLow();
System.out.println(" low= " + (commonstat[5].getValue().getLow()));
System.out.println(" high= " + (commonstat[5].getValue().getHigh()));
System.out.println(" result = " + myresult);
System.out.println("______________________");
//return commonstat[5].getValue().getLow();
return myresult;
}