Skip to content

Commit

Permalink
minipack: Fix restapi start timeout issue, this issue will cause syst…
Browse files Browse the repository at this point in the history
…em high CPU usage rate (facebook#95)

Summary:
Base on below commit:
facebookexternal/openbmc.accton@f986be3

1. Remove modbus function which can not get.
Pull Request resolved: facebookexternal/openbmc.accton#95

Test Plan: Test on Minipack:pass

Reviewed By: mikechoifb

fbshipit-source-id: 2f35b23c3
  • Loading branch information
mikechoifb authored and facebook-github-bot committed Oct 15, 2018
1 parent 0bae3b1 commit fbf12c1
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def setup_common_routes(app):
app.router.add_get(common_routes[6], chandler.rest_sensors_hdl)
app.router.add_get(common_routes[7], chandler.rest_gpios_hdl)
app.router.add_get(common_routes[8], chandler.rest_fcpresent_hdl)
app.router.add_get(common_routes[9], chandler.modbus_registers_hdl)
app.router.add_get(common_routes[10], chandler.psu_update_hdl)
app.router.add_post(common_routes[10], chandler.psu_update_hdl_post)
app.router.add_get(common_routes[11], chandler.rest_slotid_hdl)
app.router.add_get(common_routes[12], chandler.rest_mTerm_status)
app.router.add_get(common_routes[9], chandler.psu_update_hdl)
app.router.add_post(common_routes[9], chandler.psu_update_hdl_post)
app.router.add_get(common_routes[10], chandler.rest_slotid_hdl)
app.router.add_get(common_routes[11], chandler.rest_mTerm_status)

0 comments on commit fbf12c1

Please sign in to comment.