24#if defined( OS_WINNT )
79 char str[80], path[256];
101 strcpy(
cs,
"Running");
103 strcpy(
cs,
"Paused ");
105 strcpy(
cs,
"Stopped");
126 assert(
sizeof(
str) >= 32);
137 xststr[
j++] =
msprintf(
"*- MIDAS Status Page -%s ----------------------------*",
str);
205 xststr[
j++] =
"FE Equip. Node Evts Taken Evt Rate[/s] Data Rate[Kb/s]";
284 xststr[
j++] =
"... No Front-End currently running...";
315 xststr[
j++] =
"Chan. Active Type Filename Events Taken KBytes Taken";
328 size =
sizeof(
lpath);
341 size =
sizeof(
ltype);
402 char bn[128],
tl[128];
419 size =
sizeof(client_name);
442 xststr[
j] =
msprintf(
"%s %15s %25s %45s %60s",
"Lazy Label",
"Progress",
"File name",
"#files",
"Total");
461 for (
int i = 0;;
i++) {
486 xststr[
j++] =
msprintf(
"*- [!] to Exit ------- [R] to Refresh ---------------------- Delay:%2.i [sec]-*",
delta_time / 1000);
488 xststr[
j++] =
"*---------------------------------------------------------------------------*";
528 else if (
argv[
i][0] ==
'-') {
545 printf(
"usage: mstat -l (loop) -w delay (5sec) -f filename (null)\n");
546 printf(
" -c compose (Addrun#/norun#)\n");
547 printf(
" [-h Hostname] [-e Experiment]\n\n");
625 if ((
char)
ch ==
'!')
INT cm_yield(INT millisec)
INT cm_get_experiment_database(HNDLE *hDB, HNDLE *hKeyClient)
INT cm_connect_experiment(const char *host_name, const char *exp_name, const char *client_name, void(*func)(char *))
INT cm_disconnect_experiment(void)
INT cm_get_environment(char *host_name, int host_name_size, char *exp_name, int exp_name_size)
const char * cm_get_revision()
INT cm_set_watchdog_params(BOOL call_watchdog, DWORD timeout)
INT cm_exist(const char *name, BOOL bUnique)
#define DB_NO_MORE_SUBKEYS
INT ss_getchar(BOOL reset)
void ss_printf(INT x, INT y, const char *format,...)
void cm_msg_get_logfile(const char *fac, time_t t, std::string *filename, std::string *linkname, std::string *linktarget)
INT cm_set_msg_print(INT system_mask, INT user_mask, int(*func)(const char *))
BOOL equal_ustring(const char *str1, const char *str2)
INT db_get_value(HNDLE hDB, HNDLE hKeyRoot, const char *key_name, void *data, INT *buf_size, DWORD type, BOOL create)
INT db_get_key(HNDLE hDB, HNDLE hKey, KEY *key)
INT db_find_key(HNDLE hDB, HNDLE hKey, const char *key_name, HNDLE *subhKey)
INT db_enum_key(HNDLE hDB, HNDLE hKey, INT idx, HNDLE *subkey_handle)
BOOL debug
debug printouts
char host_name[HOST_NAME_LENGTH]
char expt_name[NAME_LENGTH]
std::string msprintf(const char *format,...)
#define write(n, a, f, d)
INT open_log_midstat(INT file_mode, INT runn, char *svpath)
std::string xststr[MAX_LINE]
void compose_status(HNDLE hDB, HNDLE hKey)
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)