?? status.c
字號:
/***********************************************************************\* Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com ** ** This file is placed under the conditions of the GNU Library ** General Public License, version 2, or any later version. ** See file ../COPYING.LIB for information on distribution ** conditions. *\***********************************************************************/#include "ps.h"#include "readproc.h"char * status(proc_t* task) { static char buf[4] = " "; buf[0] = task->state; if (task->rss == 0 && task->state != 'Z') buf[1] = 'W'; else buf[1] = ' '; if (task->nice < 0) buf[2] = '<'; else if (task->nice > 0) buf[2] = 'N'; else buf[2] = ' '; return(buf);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -