summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-12-06 16:21:35 (UTC)
committer mickeyl <mickeyl>2003-12-06 16:21:35 (UTC)
commit2d793ca674944241480f6939814e3f61d0a0e0fb (patch) (unidiff)
treeb5b99750e52557185592601eff8c4776fbd70c00
parentefb9bf44691e6555a45f0a45f570eb56f1b180d3 (diff)
downloadopie-2d793ca674944241480f6939814e3f61d0a0e0fb.zip
opie-2d793ca674944241480f6939814e3f61d0a0e0fb.tar.gz
opie-2d793ca674944241480f6939814e3f61d0a0e0fb.tar.bz2
fix display bug for usage column
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/modulesinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/modulesinfo.cpp b/noncore/settings/sysinfo/modulesinfo.cpp
index 8def0d6..0bf51e8 100644
--- a/noncore/settings/sysinfo/modulesinfo.cpp
+++ b/noncore/settings/sysinfo/modulesinfo.cpp
@@ -109,12 +109,14 @@ void ModulesInfo::updateData()
109 109
110 if ( procfile ) 110 if ( procfile )
111 { 111 {
112 QListViewItem *newitem; 112 QListViewItem *newitem;
113 QListViewItem *selecteditem = 0x0; 113 QListViewItem *selecteditem = 0x0;
114 while ( true ) { 114 while ( true ) {
115 modname[0] = '\0';
116 usage[0] = '\0';
115 int success = fscanf( procfile, "%s%d%d%[^\n]", modname, &modsize, &usecount, usage ); 117 int success = fscanf( procfile, "%s%d%d%[^\n]", modname, &modsize, &usecount, usage );
116 118
117 if ( success == EOF ) 119 if ( success == EOF )
118 break; 120 break;
119 121
120 QString qmodname = QString( modname ); 122 QString qmodname = QString( modname );