Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/console/interface/memphis/plugins/cpu/__init__.py
blob: e22a41348d9380220f72964e616cfeafbd90d559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import info

INTERNALS = {
            'PLGNAME': "cpu",
            'TABNAME': None,
            'AUTHOR': "Eduardo Silva",
            'DESC': "Print CPU usage",

            # Plugin API
            'Plg': None, # Plugin object
            'current_plg': None, # Current plugin object
            'current_page': None, # Current page number

            # Top process view requirements
            'top_data': [int], # Top data types needed by memphis core plugin
            'top_cols': ["%CPU "] # Column names
        }

# Get CPU frequency 
cpu_hz = os.sysconf(2)

pids_ujiffies = {}