public DataServerStruct(Address addr, int weight, SystemInfo info)
 {
     this.addr = addr;
     this.weight = weight;
     this.info = info;
     this.regions = new HashSet<Region>();
 }
Example #2
0
 private static SystemInfo decodeSystemInfo(KVMemoryStream stream)
 {
     SystemInfo info = new SystemInfo();
     info.memoryFree = stream.ReadLong();
     info.memoryTotal = stream.ReadLong();
     info.cpuUsage = stream.ReadDouble();
     return info;
 }