Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lenovo-lico:lico-dep:5.1:el7
ganglia-web-gpu-module
gpu_power_violation_report.php
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpu_power_violation_report.php of Package ganglia-web-gpu-module
<?php /* Pass in by reference! */ function graph_gpu_power_violation_report ( &$rrdtool_graph ) { global $context, $hostname, $mem_shared_color, $mem_cached_color, $mem_buffered_color, $mem_swapped_color, $mem_used_color, $cpu_num_color, $range, $rrd_dir, $size, $strip_domainname; if ($strip_domainname) { $hostname = strip_domainname($hostname); } $dIndex = $rrdtool_graph["arguments"]["dindex"]; $title = 'GPU'.$dIndex.' Power Violation'; $rrdtool_graph['title'] = $title; $rrdtool_graph['lower-limit'] = '0'; $rrdtool_graph['vertical-label'] = '% Violation'; $rrdtool_graph['extras'] = '--rigid --base 1024'; $series = "DEF:'gpu_power_violation'='${rrd_dir}/gpu".$dIndex."_power_violation_report.rrd':'sum':AVERAGE " ."LINE2:'gpu_power_violation'#555555:'GPU".$dIndex." Power Violation' " ."CDEF:nice_pos=gpu_power_violation,0,INF,LIMIT " . "VDEF:nice_last=nice_pos,LAST " . "VDEF:nice_min=nice_pos,MINIMUM " . "VDEF:nice_avg=nice_pos,AVERAGE " . "VDEF:nice_max=nice_pos,MAXIMUM " . "GPRINT:'nice_last':' Now\:%5.0lf' " . "GPRINT:'nice_min':' Min\:%5.0lf\\l' " . "GPRINT:'nice_avg':' Avg\:%5.0lf ' " . "GPRINT:'nice_max':' Max\:%5.0lf\\l' "; $rrdtool_graph['series'] = $series; return $rrdtool_graph; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor