This is an automated email from the git hooks/post-receive script. o m e g a p h i l p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository panel-plugins/xfce4-hardware-monitor-plugin.
commit 9cf84a59c731a153e11fcd344efe696a395391d9 Author: OmegaPhil <[email protected]> Date: Tue Nov 28 20:11:48 2017 +0000 Minor comments update, comment out debug code --- src/monitor-impls.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/monitor-impls.cpp b/src/monitor-impls.cpp index aaea7eb..a319f1b 100644 --- a/src/monitor-impls.cpp +++ b/src/monitor-impls.cpp @@ -38,15 +38,16 @@ #include <glibtop/netload.h> #include <glibtop/netlist.h> -#include <sys/time.h> // for high-precision timing for the network load +#include <sys/time.h> // For high-precision timing for network load and disk + // read/write speed #include "monitor-impls.hpp" #include "ucompose.hpp" #include "i18n.hpp" /* Decay factor for maximum values (log_0.999(0.9) = 105 iterations - * before reduced 10%). This is now no longer used for CurveView - the - * actual max value across the ValueHistories is used */ + * before reduced 10%). This is now no longer used for CurveView or ColumnView - + * the actual max value across the ValueHistories is used */ double const max_decay = 0.999; @@ -419,7 +420,7 @@ Glib::ustring format_bytes_per_second(long duration_ms, double bytes, double val = bytes / duration_ms * 1000; // Debug code - std::cerr << String::ucompose("format_bytes_per_second formatting %1\n", val); + //std::cerr << String::ucompose("format_bytes_per_second formatting %1\n", val); if (val <= 0) // fix weird problem with negative values val = 0; @@ -1067,9 +1068,9 @@ double DiskStatsMonitor::do_measure() } // Debug code - std::cerr << Glib::ustring::compose("Device '%1' stat %2: %3\n", device_name, + /*std::cerr << Glib::ustring::compose("Device '%1' stat %2: %3\n", device_name, stat_to_string(stat_to_monitor, false), - it->second[stat_to_monitor]); + it->second[stat_to_monitor]);*/ double val; if (convert_to_rate()) @@ -1099,10 +1100,10 @@ double DiskStatsMonitor::do_measure() } // Debug code - std::cerr << Glib::ustring::compose("Device '%1' has filesystem block size" + /*std::cerr << Glib::ustring::compose("Device '%1' has filesystem block size" " %2, measurement time difference %3\n", device_name, multiplication_factor, - time_difference); + time_difference);*/ } else multiplication_factor = 1; -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
