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
344 B
16 lines
344 B
2 days ago
|
using System;
|
||
|
using System.Diagnostics;
|
||
|
|
||
|
public class cs_CPUMonitorStyle1 : 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
|