[Xfce4-commits] <xfce4-cpugraph-plugin:master> Fix bug 2845

Florian noreply at xfce.org
Sat Apr 17 16:16:33 CEST 2010


Updating branch refs/heads/master
         to 9393bdb00aa1c174e29fc8ff49b0963a2052077e (commit)
       from 25ef685df3b0a62ac0dc1420a904ce6216842500 (commit)

commit 9393bdb00aa1c174e29fc8ff49b0963a2052077e
Author: Florian Rivoal <frivoal at gmail.com>
Date:   Sun Mar 7 20:02:34 2010 +0900

    Fix bug 2845
    
    int and long are different on 64 bit cpus, so don't use them
    interchangeably.

 panel-plugin/cpu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index a9c4366..eed5c8f 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -178,7 +178,7 @@ gboolean UpdateCPU( CPUGraph * base )
 			base->m_History[i--] = (a * (factor-1) + b) / factor;
 		}
 	} else {
-		memmove( base->m_History + 1 , base->m_History , (base->m_Values - 1) * sizeof( int ) );
+		memmove( base->m_History + 1 , base->m_History , (base->m_Values - 1) * sizeof( long ) );
 	}
 	base->m_History[0] = (long)base->m_CpuData[0].load;
 



More information about the Xfce4-commits mailing list