Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
569ab463
Commit
569ab463
authored
Sep 23, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored status updates
parent
7c1c5571
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
camogmgui.js
src/camogmgui/camogmgui.js
+7
-5
No files found.
src/camogmgui/camogmgui.js
View file @
569ab463
...
@@ -418,7 +418,8 @@ function process_recording(xmldoc) {
...
@@ -418,7 +418,8 @@ function process_recording(xmldoc) {
document
.
getElementById
(
'buffer_free'
).
style
.
width
=
Math
.
round
(
buffer_free
/
19791872
*
300
);
document
.
getElementById
(
'buffer_free'
).
style
.
width
=
Math
.
round
(
buffer_free
/
19791872
*
300
);
document
.
getElementById
(
'buffer_used'
).
style
.
width
=
Math
.
round
(
buffer_used
/
19791872
*
300
);
document
.
getElementById
(
'buffer_used'
).
style
.
width
=
Math
.
round
(
buffer_used
/
19791872
*
300
);
get_hdd_space
();
//get_hdd_space();
get_space
(
selected_mountpoint
);
if
(
xmldoc
.
getElementsByTagName
(
'buffer_overruns'
)[
0
].
firstChild
.
data
>
0
)
if
(
xmldoc
.
getElementsByTagName
(
'buffer_overruns'
)[
0
].
firstChild
.
data
>
0
)
alert
(
"Buffer overrun! current datarate exceeds max. write rate"
)
alert
(
"Buffer overrun! current datarate exceeds max. write rate"
)
...
@@ -426,7 +427,7 @@ function process_recording(xmldoc) {
...
@@ -426,7 +427,7 @@ function process_recording(xmldoc) {
recording
=
false
;
recording
=
false
;
function
update_state
()
{
function
update_state
()
{
//if (recording) {
//if (recording) {
makeRequest
(
'camogm_interface.php'
,
'?cmd=status'
);
makeRequest
(
'camogm_interface.php'
,
'?cmd=status'
);
//setTimeout('update_state()', 200);
//setTimeout('update_state()', 200);
//}
//}
}
}
...
@@ -458,8 +459,9 @@ function toggle_recording() {
...
@@ -458,8 +459,9 @@ function toggle_recording() {
}
}
//setTimeout('list_files(getCookie("current_dir"))', 300);
//setTimeout('list_files(getCookie("current_dir"))', 300);
setTimeout
(
'get_hdd_space()'
,
600
);
//
setTimeout('get_hdd_space()', 600);
//setTimeout(last_update, 900);
//setTimeout(last_update, 900);
//get_space(selected_mountpoint);
}
}
else
// Start it
else
// Start it
{
{
...
@@ -474,8 +476,8 @@ function toggle_recording() {
...
@@ -474,8 +476,8 @@ function toggle_recording() {
document
.
getElementById
(
'record_text'
).
innerHTML
=
"<img src=
\"
images/stop.gif
\"
style=
\"
position:relative; bottom:-5px;
\"
> STOP"
;
document
.
getElementById
(
'record_text'
).
innerHTML
=
"<img src=
\"
images/stop.gif
\"
style=
\"
position:relative; bottom:-5px;
\"
> STOP"
;
document
.
getElementById
(
'sitecoloumn'
).
style
.
backgroundColor
=
"#AF2020"
;
document
.
getElementById
(
'sitecoloumn'
).
style
.
backgroundColor
=
"#AF2020"
;
//
clearInterval(update_intvl);
clearInterval
(
update_intvl
);
//
update_intvl = setInterval(update_state,1000);
update_intvl
=
setInterval
(
update_state
,
1000
);
}
}
//update_state();
//update_state();
}
}
...
...
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