Commit 569ab463 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

restored status updates

parent 7c1c5571
...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment