Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
b4bbdf40
Commit
b4bbdf40
authored
May 20, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed scale
parent
78e4b7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
hwmon.js
recipes-core/apps-web/files/hwmon.js
+11
-8
No files found.
recipes-core/apps-web/files/hwmon.js
View file @
b4bbdf40
...
...
@@ -4,11 +4,10 @@ $(function(){
var
interval_read_temperature
;
var
d0
=
Array
();
var
d1
=
Array
();
var
d2
=
Array
();
var
d3
=
Array
();
var
d0
=
Array
.
apply
(
null
,
Array
(
600
)).
map
(
Number
.
prototype
.
valueOf
,
0
);
var
d1
=
Array
.
apply
(
null
,
Array
(
600
)).
map
(
Number
.
prototype
.
valueOf
,
0
);
var
d2
=
Array
.
apply
(
null
,
Array
(
600
)).
map
(
Number
.
prototype
.
valueOf
,
0
);
var
d3
=
Array
.
apply
(
null
,
Array
(
600
)).
map
(
Number
.
prototype
.
valueOf
,
0
);
var
t
=
Array
();
var
level_shutdown
;
...
...
@@ -110,10 +109,14 @@ function read_core_temp(){
url
:
"hwmon.php?cmd=t"
,
complete
:
function
(
data
){
console
.
log
(
data
.
responseText
);
t
.
push
(
d1
.
length
);
//t.push(d1.length);
d0
.
splice
(
0
,
1
);
d0
.
push
(
level_shutdown
);
d1
.
splice
(
0
,
1
);
d1
.
push
(
level_fan_on
);
d2
.
splice
(
0
,
1
);
d2
.
push
(
level_fan_on
-
level_fan_hyst
);
d3
.
splice
(
0
,
1
);
d3
.
push
(
data
.
responseText
);
options
.
xaxis
.
tickSize
=
Math
.
max
(
1
,
Math
.
round
(
d1
.
length
)
/
10
);
$
.
plot
(
$
(
"#t_chart"
),
[
...
...
@@ -128,8 +131,8 @@ function read_core_temp(){
function
get_data
(
x
,
y
){
var
d
=
Array
();
for
(
var
i
=
0
;
i
<
x
.
length
;
i
++
){
d
.
push
([
x
[
i
]
,
y
[
i
]]);
for
(
var
i
=
0
;
i
<
y
.
length
;
i
++
){
d
.
push
([
i
,
y
[
i
]]);
}
return
d
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment