Servicewall / interview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interview

1. 写一个API能返回以下信息。

只要求格式相同

curl http://127.0.0.1:8080/cpu/usage
{
	 "usage": 100.0
}

2. 在1的基础上可以真实返回CPU利用率。

可以任意使用第三方库

About