@cryptotaxi247 / netdata-1 / commits / cc5dbdb50

better work reporting

Costa Tsaousis (ktsaou) committed May 4, 2014 at 15:53 UTC cc5dbdb5017082cdab4887530a94d88931f210b3
1 file changed +1 -1
plugins.d/loopsleepms.sh.inc
+1 -1
@@ -52,7 +52,7 @@ loopsleepms() {
52 LOOPSLEEPMS_LASTWORK=$((now - LOOPSLEEPMS_LASTRUN - LOOPSLEEPMS_LASTSLEEP))
53 # echo "# last loop's work took $LOOPSLEEPMS_LASTWORK ms"
54
55 - test $tellwork -eq 1 && echo >&2 " >>> DEBUG >>> WORK TOOK $LOOPSLEEPMS_LASTWORK ms"
55 + test $tellwork -eq 1 && echo >&2 " >>> PERFORMANCE >>> WORK TOOK $LOOPSLEEPMS_LASTWORK ms ( $((LOOPSLEEPMS_LASTWORK * 100 / 1000)).$((LOOPSLEEPMS_LASTWORK % 10))% cpu )"
56
57 # calculate ms to sleep
58 local mstosleep=$((t - LOOPSLEEPMS_LASTWORK))