You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
362 B
16 lines
362 B
using System;
|
|
|
|
public class cs_CPUMonitorStyle2 : OboutInc.oboutAJAXPage
|
|
{
|
|
void Page_Load(object o, EventArgs e)
|
|
{
|
|
CreateTimer ("updateCount", "computeCount", "getResult", 1000);
|
|
}
|
|
|
|
public float computeCount() {
|
|
Random rnd = new Random();
|
|
float val = rnd.Next(4);
|
|
if(val == 2) // insert a random spike
|
|
return rnd.Next(40);
|
|
return rnd.Next(10);
|