2
* Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin Ltd.
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; version 3.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#include <glib/gi18n.h>
21
#include <glibtop/procstate.h>
24
const char* format_process_state(guint state)
30
case GLIBTOP_PROCESS_RUNNING:
31
status = _("Running");
34
case GLIBTOP_PROCESS_STOPPED:
35
status = _("Stopped");
38
case GLIBTOP_PROCESS_ZOMBIE:
42
case GLIBTOP_PROCESS_UNINTERRUPTIBLE:
43
status = _("Uninterruptible");
47
status = _("Sleeping");
54
const gchar* get_nice_level (gint nice)
57
return _("Very High");