Skip to content

Commit

Permalink
dubboclub#3 fixed method size less than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bieberHe committed Nov 3, 2015
1 parent 01ba410 commit c7584df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class MonitorController {
@RequestMapping("/{application}/{service}/{timeRange}/monitors.htm")
public @ResponseBody
Collection<MethodMonitorOverview> overviewService(@PathVariable("application")String application,@PathVariable("service")String service,@PathVariable("timeRange")int timeRange){
List<Provider> providers = providerService.listProviderByServiceKey(service);
List<Provider> providers = providerService.listProviderByService(service);
List<String> methods = new ArrayList<String>();
if(providers.size()>0){
Provider provider = providers.get(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
<td class="text-left td-15-width"> <span class='{{provider.dynamic?"text-primary":"text-danger"}}'>{{provider.dynamic?"动态":"静态"}}</span></td>
<td class="text-left td-15-width"> <span class='{{provider.enabled?"text-primary":"text-danger"}}'>{{provider.enabled?"已启用":"禁用"}}</span></td>
<td class="text-left">
<span><a href="#/admin/edit/{{serviceKey | encodeUrl}}/{{provider.address}}/{{provider.id}}/provider"><i class="icon-pencil" title="编辑"></i> </a></span>
<span ng-show="{{!serviceKey}}"><a href="#/admin/edit/{{provider.serviceKey | encodeUrl}}/{{provider.address}}/{{provider.id}}/provider"><i class="icon-pencil" title="编辑"></i> </a></span>
<span ng-show="{{!host}}"><a href="#/admin/edit/{{serviceKey | encodeUrl}}/{{provider.address}}/{{provider.id}}/provider"><i class="icon-pencil" title="编辑"></i> </a></span>
<span> &nbsp;| &nbsp;<a href="javascript:void(0);" ng-click="operation('halfWeight',provider)"><i class="icon-arrow-down" title="半权"></i> </a></span>
<span> &nbsp;| &nbsp;<a href="javascript:void(0);" ng-click="operation('doubleWeight',provider)"><i class="icon-arrow-up" title="倍权"></i> </a> </span>
<span> &nbsp;| &nbsp;<a href="javascript:void(0);" ng-click="operation('copy',provider)"><i class="icon-copy" title="复制"></i> </a></span>
Expand Down

0 comments on commit c7584df

Please sign in to comment.