def get_sys_info():
"""
Return dictionary of system information
SC_NPROCESSORS_ONLN returns the number of processors which are currently
online (i.e. available). See os.sysconf_names for dictionary values.
"""
return {
"nodename": gethostname(),
"total_logical_cpus": os.sysconf(84)
}
评论列表
文章目录