[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#420652: (no subject)



tag 420652 +patch
thanks

Hi
	I managed to write a (very) little patch to avoid that. The problem is that 
programs such df looks for the space available to write by the 
non-administrator, but ksim looks for _all_ the space left, so the percentile 
is shifted of about 5%.
I think that a monitor such ksim should display the percentile used counting 
also the administrator-only writable space.

The attached patch solve this.
Regards
-- 
Debian Powered GNU/Linux User #373118
Bedogni Luca - 	Blog | http://blog.lucabedogni.it
		        Site | http://www.lucabedogni.it
Debianizzati - www.debianizzati.org | Founder Member
--
"Never on your machine with root password after 3:00 AM".
--- ksim/monitors/filesystem/filesystemstats.cpp	2007-04-24 12:55:01.000000000 +0200
+++ ksim/monitors/filesystem/filesystemstats.cpp	2007-01-15 12:25:33.000000000 +0100
@@ -215,7 +215,7 @@
   }
 
   totalBlocks = sysStats.f_blocks;
-  freeBlocks = sysStats.f_bfree;
+  freeBlocks = sysStats.f_bavail;
 
   // Return true if our filesystem is statable
   return totalBlocks > 0;

Reply to: