registry: fix a divided by zero problem
registry: fix a divided by zero problem

Signed-off-by: Dongsheng Yang <1b957dfff8d0f16ed124fab3c79d8c1232c34692@cn.fujitsu.com>

linecheng/shipyard,zhoffice/shipyard,eedevops/shipyard,ehazlett/shipyard,ehazlett/shipyard,eedevops/shipyard,rchicoli/shipyard,zhoffice/shipyard,linecheng/shipyard,zhoffice/shipyard,eedevops/shipyard,rchicoli/shipyard,scapewang/shipyard,rchicoli/shipyard,scapewang/shipyard,rchicoli/shipyard,ehazlett/shipyard,eedevops/shipyard,scapewang/shipyard,ehazlett/shipyard,zhoffice/shipyard,scapewang/shipyard,linecheng/shipyard,linecheng/shipyard