Hello community, here is the log from the commit of package kdebase3 checked in at Fri Sep 15 02:18:08 CEST 2006. -------- --- KDE/kdebase3/kdebase3.changes 2006-09-14 09:16:34.000000000 +0200 +++ kdebase3/kdebase3.changes 2006-09-14 21:35:43.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Sep 14 21:31:44 CEST 2006 - coolo@suse.de + +- fixing low disk space calculation for huge volumes (without having + one to test either) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kdebase3.spec ++++++ --- /var/tmp/diff_new_pack.EluZmg/_old 2006-09-15 02:17:19.000000000 +0200 +++ /var/tmp/diff_new_pack.EluZmg/_new 2006-09-15 02:17:19.000000000 +0200 @@ -41,7 +41,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://www.kde.org/ Version: 3.5.4 -Release: 19 +Release: 20 %define kde_version 3.5.4 Source0: kdebase-%{kde_version}.tar.bz2 Source3: startkde.suse.sh @@ -342,7 +342,7 @@ Summary: Set and list fileshares Group: System/Management Version: 2.0 -Release: 120 +Release: 121 %description -n fileshareset This package contains the the fileshareset utility to allow users to @@ -1421,6 +1421,9 @@ %changelog -n kdebase3 * Thu Sep 14 2006 - coolo@suse.de +- fixing low disk space calculation for huge volumes (without having + one to test either) +* Thu Sep 14 2006 - coolo@suse.de - actually check the auth in kcheckpass * Tue Sep 12 2006 - dmueller@suse.de - update 3_5_BRANCH to fix kicker hang (#204728) ++++++ lowdiskspace.patch ++++++ --- /var/tmp/diff_new_pack.EluZmg/_old 2006-09-15 02:17:22.000000000 +0200 +++ /var/tmp/diff_new_pack.EluZmg/_new 2006-09-15 02:17:22.000000000 +0200 @@ -1,7 +1,7 @@ Index: kioslave/media/medianotifier/medianotifier.cpp -================================================================================ ---- kioslave/media/medianotifier/medianotifier.cpp -+++ kioslave/media/medianotifier/medianotifier.cpp +=================================================================== +--- kioslave/media/medianotifier/medianotifier.cpp (Revision 584407) ++++ kioslave/media/medianotifier/medianotifier.cpp (Arbeitskopie) @@ -19,8 +19,11 @@ #include "medianotifier.h" @@ -25,20 +25,22 @@ } MediaNotifier::~MediaNotifier() -@@ -314,4 +321,28 @@ +@@ -309,4 +316,30 @@ } } +void MediaNotifier::checkFreeDiskSpace() +{ + struct statfs sfs; -+ int total, avail; ++ long total, avail; + QString homeDirPath = QDir::homeDirPath(); + if ( statfs( QFile::encodeName( homeDirPath ), &sfs ) == 0 ) + { + total = sfs.f_blocks; + avail = ( getuid() ? sfs.f_bavail : sfs.f_bfree ); -+ int freeperc = ( int )100 * avail / total; ++ if (avail < 0) ++ return; // we better do not say anything about it ++ int freeperc = static_cast<int>(100 * double(avail) / total); + + if ( freeperc < 5 ) // free disk space dropped under a limit + { @@ -54,8 +56,10 @@ +} + #include "medianotifier.moc" ---- kioslave/media/medianotifier/medianotifier.h -+++ kioslave/media/medianotifier/medianotifier.h +Index: kioslave/media/medianotifier/medianotifier.h +=================================================================== +--- kioslave/media/medianotifier/medianotifier.h (Revision 584407) ++++ kioslave/media/medianotifier/medianotifier.h (Arbeitskopie) @@ -41,6 +41,7 @@ private slots: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org