예제 #1
0
파일: Host_metrics.cs 프로젝트: hl10502/WCM
 internal void UpdateFromProxy(Proxy_Host_metrics proxy)
 {
     this.uuid         = (proxy.uuid == null) ? null : proxy.uuid;
     this.memory_total = (proxy.memory_total == null) ? 0L : long.Parse(proxy.memory_total);
     this.memory_free  = (proxy.memory_free == null) ? 0L : long.Parse(proxy.memory_free);
     this.live         = proxy.live;
     this.last_updated = proxy.last_updated;
     this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
 }
예제 #2
0
파일: Host_metrics.cs 프로젝트: hl10502/WCM
 public Host_metrics(Proxy_Host_metrics proxy)
 {
     this.UpdateFromProxy(proxy);
 }