Project

General

Profile

Download (1.66 KB) Statistics
| Branch: | Tag: | Revision:
1 7c5833d7 Scott Ullrich
<?php
2
/*
3
	$Id$
4 184016fc Chris Buechler
	part of pfSense (https://www.pfsense.org)
5 ce77a9c4 Phil Davis
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
6 7c5833d7 Scott Ullrich
	Copyright (C) 2007 Scott Ullrich <sullrich@gmail.com>
7
	All rights reserved.
8 45b4ffc6 Phil Davis
9 7c5833d7 Scott Ullrich
	Redistribution and use in source and binary forms, with or without
10
	modification, are permitted provided that the following conditions are met:
11 45b4ffc6 Phil Davis
12 7c5833d7 Scott Ullrich
	1. Redistributions of source code must retain the above copyright notice,
13
	   this list of conditions and the following disclaimer.
14 45b4ffc6 Phil Davis
15 7c5833d7 Scott Ullrich
	2. Redistributions in binary form must reproduce the above copyright
16
	   notice, this list of conditions and the following disclaimer in the
17
	   documentation and/or other materials provided with the distribution.
18 45b4ffc6 Phil Davis
19 7c5833d7 Scott Ullrich
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
20
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
23
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
	POSSIBILITY OF SUCH DAMAGE.
29
*/
30
31 9fbb3599 Ermal
##|+PRIV
32
##|*IDENT=page-diagnostics-cpuutilization
33
##|*NAME=Diagnostics: CPU Utilization page
34
##|*DESCR=Allow access to the 'Diagnostics: CPU Utilization' page.
35
##|*MATCH=stats.php*
36
##|-PRIV
37
38 de4333ba Ermal
require_once("guiconfig.inc");
39
require_once("includes/functions.inc.php");
40 7c5833d7 Scott Ullrich
41
$cpu = cpu_usage();
42
43
echo $cpu;
44
exit;
45
46 9fbb3599 Ermal
?>