diff options
author | Ken Moore <ken@pcbsd.org> | 2015-06-10 15:32:29 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-06-10 15:32:29 -0400 |
commit | 2bb476d52448ddc0833667feb126d7e6f2342b2d (patch) | |
tree | 7facc087a41be4cc16ce1119945470a5fc0ecad5 /lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp | |
parent | Adjust the themes to use the PRIMARY colors instead of the ACCENT colors for ... (diff) | |
download | lumina-2bb476d52448ddc0833667feb126d7e6f2342b2d.tar.gz lumina-2bb476d52448ddc0833667feb126d7e6f2342b2d.tar.bz2 lumina-2bb476d52448ddc0833667feb126d7e6f2342b2d.zip |
Add a new function to LuminaOS: DiskUsage()
This returns the current stats about the available disks on the system (current read/write rates on FreeBSD - not implemented on other OS's yet).
Also use this new function in the systemmonitor desktop plugin.
Diffstat (limited to 'lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp')
-rw-r--r-- | lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp b/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp index f5bff7b3..0d568a45 100644 --- a/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp +++ b/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp @@ -26,8 +26,9 @@ MonitorWidget::~MonitorWidget(){ void MonitorWidget::LoadIcons(){ ui->tabWidget->setTabIcon(0,LXDG::findIcon("appointment-recurring","") ); //Summary - ui->tabWidget->setTabIcon(1,LXDG::findIcon("cpu","") ); //CPU Log - ui->tabWidget->setTabIcon(2,LXDG::findIcon("media-flash-memory-stick","") ); //Mem Log + ui->tabWidget->setTabIcon(1,LXDG::findIcon("drive-harddisk","") ); //Disk Usage + //ui->tabWidget->setTabIcon(1,LXDG::findIcon("cpu","") ); //CPU Log + //ui->tabWidget->setTabIcon(2,LXDG::findIcon("media-flash-memory-stick","") ); //Mem Log } void MonitorWidget::UpdateStats(){ @@ -43,6 +44,7 @@ void MonitorWidget::UpdateStats(){ ui->progress_mem->setValue(perc); if(perc<0){ ui->progress_mem->setEnabled(false); } //disable this for future checks } + ui->label_diskinfo->setText( LOS::DiskUsage().join("\n") ); //Also perform/update the logs as necessary // -- TO DO -- } |