Giter Club home page Giter Club logo

xfce4-hardware-monitor-plugin's Issues

disk statistics not working - regex match failure

i want to monitor disk usage, similar to sudo iotop

config for xfce4-hardware-monitor-plugin:
device > storage > disk statistics
disk: sda
stat: number of bytes read per duration

problems:
in the config-dropdown 'disk' no disks are suggested
values are always zero, mouse-hover says: -nan B/s

console output:

Unable to parse device stats line from '/proc/diskstats' - regex match failure:

   8       0 sda 32699 26992 2388388 52799 10467 63502 547260 105553 0 106377 160857 0 0 0 0 1293 2504

source:

// Splitting out device stats into individual fields
if (!split_stats_regex->match(single_dev_stats, match_info))
{
// Unable to parse the device stats - warning user and moving on
std::cerr << Glib::ustring::compose("Unable to parse device stats line "
"from '%1' - regex match failure:\n"
"\n%2\n", "/proc/diskstats",
single_device_stats);
continue;
}

replace deprecated functions

62 x warning: ‘template<class> class std::auto_ptr’ is deprecated

./src/curve-view.hpp:51:  std::auto_ptr<Gnome::Canvas::Line> line;
./src/column-view.hpp:54:  std::auto_ptr<Gnome::Canvas::Pixbuf> columns;
./src/flame-view.hpp:52:  std::auto_ptr<Gnome::Canvas::Pixbuf> flame;
./src/canvas-view.hpp:87:  std::auto_ptr<Gnome::Canvas::Canvas> canvas;
./src/plugin.hpp:153:  std::auto_ptr<Gtk::AboutDialog> about;
./src/plugin.hpp:154:  std::auto_ptr<View> view;
./src/plugin.hpp:155:  std::auto_ptr<PreferencesWindow> preferences_window;
./src/text-view.cpp:46:  std::auto_ptr<Gtk::Label> label;

also:

17 x warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
14 x warning: ‘GTypeDebugFlags’ is deprecated

via
/usr/include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-plugin.h
/usr/include/gtkmm-2.4/gtkmm
/usr/include/libgnomecanvasmm-2.6/libgnomecanvasmm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.