cloudwatch_publisher.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:watcher 作者: magigo 项目源码 文件源码
def _get_disk_info(self):
        """
        ??????????

        :return: list, ?????????????
        """
        status, output = getstatusoutput("df -h")
        disk_info_list = []
        if not status:
            lines = output.split('\n')
            for line in lines[1:]:
                line_sp = line.split()
                line_sp = line_sp[:5] + [line_sp[-1]]
                if '/dev/' in line_sp[0]:
                    disk_info_list.append(self.DiskInfo(*line_sp))
        return disk_info_list
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号