]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/cpu_apps.chart.sh
remove extensive usage of cat
[netdata.git] / charts.d / cpu_apps.chart.sh
index d0165ad3310b3875dfe65523a351716d6b74606b..5a25163e1398ee4dda91c26bb1b3405f7a15229f 100755 (executable)
@@ -29,12 +29,12 @@ cpu_apps_bc_finalze=
 
 cpu_apps_create() {
 
-       echo "CHART apps.cpu '' 'Apps CPU' 'milliseconds / $cpu_apps_update_every sec' apps apps stacked 20001 $cpu_apps_update_every"
+       echo "CHART chartsd_apps.cpu '' 'Apps CPU' 'milliseconds / $cpu_apps_update_every sec' apps apps stacked 20001 $cpu_apps_update_every"
 
        local x=
        for x in $cpu_apps_apps
        do
-               echo "DIMENSION $x $x incremental 1000 $((cpu_apps_clockticks * cpu_apps_update_every))"
+               echo "DIMENSION $x $x incremental 1000 $cpu_apps_clockticks"
 
                # this string is needed later in the update() function
                # to finalize the instructions for the bc command
@@ -48,7 +48,7 @@ cpu_apps_update() {
        # for each dimension
        # remember: KEEP IT SIMPLE AND SHORT
 
-       echo "BEGIN apps.cpu"
+       echo "BEGIN chartsd_apps.cpu"
        ps -o pid,comm -C "$cpu_apps_apps" |\
                grep -v "COMMAND" |\
                (