fix for ps bug where the wrong arch was sometimes defaulted to if no arch was returned.

git-svn-id: file:///home/svn/framework3/trunk@8211 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Stephen Fewer 2010-01-23 16:50:44 +00:00
parent cc41516a79
commit 651fd5e834
1 changed files with 7 additions and 6 deletions

View File

@ -217,12 +217,13 @@ class Console::CommandDispatcher::Stdapi::Sys
processes.each { |ent| processes.each { |ent|
arch = "x86" arch = ent['arch']
# for display and consistency with payload naming we switch the internal 'x86_64' value to display 'x64'
if( ent['arch'] == ARCH_X86_64 ) # for display and consistency with payload naming we switch the internal 'x86_64' value to display 'x64'
arch = "x64" if( arch == ARCH_X86_64 )
end arch = "x64"
end
tbl << [ ent['pid'].to_s, ent['name'], arch, ent['user'], ent['path'] ] tbl << [ ent['pid'].to_s, ent['name'], arch, ent['user'], ent['path'] ]
} }