tomcat
This commit is contained in:
parent
6984bfa968
commit
adc99dc29a
|
@ -30,9 +30,9 @@ export class TomcatMetric extends React.Component<Props, State> {
|
|||
public componentWillMount(): void {
|
||||
const data = [];
|
||||
for (let i = 0; i < 10; i++) {
|
||||
let maxThread = Math.floor(Math.random() * 10000) + 1000;
|
||||
let currentThread = Math.floor(Math.random() * 10000) + 1000;
|
||||
let busyThread = Math.floor(Math.random() * 10000) + 1000;
|
||||
let maxThread = Math.floor(Math.random() * 100) + 10;
|
||||
let currentThread = Math.floor(Math.random() * 100) + 10;
|
||||
let busyThread = Math.floor(Math.random() * 100) + 10;
|
||||
|
||||
let elem = { 'id': i, 'maxThread': maxThread, 'currentThread': currentThread, 'busyThread': busyThread };
|
||||
data[i] = elem;
|
||||
|
@ -67,7 +67,7 @@ export class TomcatMetric extends React.Component<Props, State> {
|
|||
<LineChart syncId='anyId' width={800} height={300}
|
||||
data={this.state.data} margin={{ top: 5, right: 30, left: 20, bottom: 5 }} >
|
||||
<XAxis dataKey='id' />
|
||||
<YAxis />
|
||||
<YAxis dataKey='maxThread'/>
|
||||
{/* <CartesianGrid stroke='#ccc' /> */}
|
||||
<CartesianGrid strokeDasharray='3 3' />
|
||||
<Tooltip content={this.showTooltipData.bind(this)} />
|
||||
|
|
Loading…
Reference in New Issue
Block a user