|
|
@@ -775,9 +775,13 @@ void* power_thread(void* arg)
|
|
|
if(__globalDeviceManage._globalDevInfo.product_pwr_type == SmartPDU_AC
|
|
|
|| __globalDeviceManage._globalDevInfo.product_pwr_type == SmartPDU_DC)
|
|
|
{
|
|
|
- __globalDeviceManage.single_mmap->total_current = _globalTotalPowerInfo._power_info.current;
|
|
|
- __globalDeviceManage.single_mmap->total_power = _globalTotalPowerInfo._power_info.power;
|
|
|
- __globalDeviceManage.single_mmap->total_valtage = _globalTotalPowerInfo._power_info.voltage;
|
|
|
+ __globalDeviceManage.single_mmap->total_current = _globalTotalPowerInfo._power_info.current*1000;
|
|
|
+ __globalDeviceManage.single_mmap->total_power = _globalTotalPowerInfo._power_info.power*1000;
|
|
|
+ __globalDeviceManage.single_mmap->total_valtage = _globalTotalPowerInfo._power_info.voltage*1000;
|
|
|
+ __globalDeviceManage.single_mmap->total_consumer = _globalTotalPowerInfo._power_info.consumption * 1000;
|
|
|
+ // printf("total_valtage = %d consumer = %d power = %d\n",__globalDeviceManage.single_mmap->total_valtage,
|
|
|
+ // __globalDeviceManage.single_mmap->total_current
|
|
|
+ // ,__globalDeviceManage.single_mmap->total_power);
|
|
|
__globalDeviceManage.single_mmap->dev_chn = __globalDeviceManage._globalDevInfo.product_pwr_type << 8 | _chn;
|
|
|
|
|
|
}
|