📄 sysmonitor.h.bak
字号:
#include <dstruct.h>extern void send_message_toserver();extern void recv_message_fromcli(int socketfd);#define HOSTLEN 20extern char hostname[HOSTLEN];extern DB_DESCR db_descr_dcepm;extern TB_DESCR tb_descr_Partitioninfo, tb_descr_Sysinfo, tb_descr_Netinfo, tb_descr_Pthreadinfo,tb_descr_Nodeinfo;extern int Partitioninfo_use_flag,Sysinfo_use_flag,Netinfo_use_flag,Pthreadinfo_use_flag;extern int dcepm_init();extern int dcepm_tb_use();extern int dcepm_tb_close();extern void check_status(int moni_interval);typedef struct PARTITIONMESSAGE {char Node_name[10]; //char Part1_name[10]; //name of partition1char Part2_name[10]; //name of partition2char Part3_name[10]; //name of partition3char Part4_name[10]; //name of partition4int Part1_size; //size of partition1int Part2_size; //size of partition2int Part3_size; //size of partition3int Part4_size; //size of partition4float Part1_used; //size of partition1float Part2_used; //size of partition2float Part3_used; //size of partition3float Part4_used; //size of partition4int Part_num; //num of partition to be monitored} PARTITIONMESSAGE;typedef struct SYSMESSAGE{char Node_name[10]; //=Z5cC{float Cpu_used; //CpuJ9SCBJfloat Mem_used; //MenJ9SCBJint Mem_size; //size of physical mem}SYSMESSAGE;typedef struct NETMESSAGE{char Net_name[20]; //name of netdev1char Node_name[20]; //=Z5cC{char Net_address[20]; //5ZR;?iMx?(5DIP5XV7int Net_speed; //5ZR;?iMx?(4+JdA?}NETMESSAGE;typedef struct PTHREADMESSAGE{char Node_name[10]; //=Z5cC{char Pthread_name[20]; //=x3LC{3Ffloat Pthread_cpuload; //cpuload of pthreadtinyint Pthread_status; //=x3LW4L,float Pthread_memload; //memload of pthreadint Pthread_runtime;}PTHREADMESSAGE;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -