15641
|
1 |
--- gnome-system-monitor-2.26.1/src/sysinfo.cpp 2009-04-16 11:44:31.402219136 +0100
|
|
2 |
+++ gnome-system-monitor-2.26.1-new/src/sysinfo.cpp 2009-04-16 11:46:28.735986864 +0100
|
|
3 |
@@ -126,6 +126,14 @@ namespace {
|
|
4 |
this->free_space_bytes = 0;
|
14931
|
5 |
|
15641
|
6 |
for (guint i = 0; i != mountlist.number; ++i) {
|
|
7 |
+ if ((string(entries[i].mountdir).compare("/") == 0) && \
|
|
8 |
+ (string(entries[i].type).compare("zfs") == 0)) {
|
|
9 |
+ // Root filesystem is ZFS based: Calculate usage based on "/".
|
|
10 |
+ glibtop_fsusage usage;
|
|
11 |
+ glibtop_get_fsusage(&usage, "/");
|
|
12 |
+ this->free_space_bytes = usage.bavail * usage.block_size;
|
|
13 |
+ break;
|
|
14 |
+ }
|
14931
|
15 |
|
15641
|
16 |
if (string(entries[i].devname).find("/dev/") != 0)
|
|
17 |
continue;
|