Skip to content
Snippets Groups Projects
Commit 5970340b authored by echicken's avatar echicken
Browse files

Moved queue-reading thing over to lib.js.

parent 3a48c297
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,16 @@ function load_settings(fp) {
return ret;
}
// Flush any existing named values (valname) and return the last one
// (I haven't checked yet, but I assume Queue is FIFO)
function get_last_queued_value(queue, valname) {
var val, temp_val;
while (typeof (temp_val = queue.read(valname)) !== 'undefined') {
val = temp_val;
}
return val;
}
function user_online(n) {
return (
system.node_list[n].status == 3 || system.node_list[n].status == 4
......
......@@ -3,16 +3,6 @@ load('frame.js');
load('progress-bar.js');
load(js.exec_dir + 'lib.js');
// Flush any existing named values (valname) and return the last one
// (I haven't checked yet, but I assume Queue is FIFO)
function get_last_queued_value(queue, valname) {
var val, temp_val;
while (typeof (temp_val = queue.read(valname)) !== 'undefined') {
val = temp_val;
}
return val;
}
function get_node_response_time(filename) {
return (file_exists(filename) ? file_date(filename) : null);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment