~ubuntu-branches/ubuntu/vivid/cairo-dock-plug-ins/vivid

« back to all changes in this revision

Viewing changes to netspeed/src/applet-netspeed.c

  • Committer: Matthieu Baerts
  • Date: 2013-08-27 14:46:47 UTC
  • mto: (53.1.4 cairo-dock-plug-ins)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: matttbe@gmail.com-20130827144647-wm0kyawa8vcg0cso
Tags: upstream-3.2.99.beta1.1~20130827~bzr2928
ImportĀ upstreamĀ versionĀ 3.2.99.beta1.1~20130827~bzr2928

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
}
93
93
 
94
94
 
95
 
void cd_netspeed_format_value (CairoDataRenderer *pRenderer, int iNumValue, gchar *cFormatBuffer, int iBufferLength, CairoDockModuleInstance *myApplet)
 
95
void cd_netspeed_format_value (CairoDataRenderer *pRenderer, int iNumValue, gchar *cFormatBuffer, int iBufferLength, GldiModuleInstance *myApplet)
96
96
{
97
97
        static gchar s_upRateFormatted[11];
98
98
        cd_netspeed_formatRate (iNumValue == 0 ? myData.iDownloadSpeed : myData.iUploadSpeed, s_upRateFormatted, 11, FALSE);
103
103
}
104
104
 
105
105
 
106
 
void cd_netspeed_get_data (CairoDockModuleInstance *myApplet)
 
106
void cd_netspeed_get_data (GldiModuleInstance *myApplet)
107
107
{
108
108
        g_timer_stop (myData.pClock);
109
109
        double fTimeElapsed = g_timer_elapsed (myData.pClock, NULL);
210
210
                myData.bInitialized = TRUE;
211
211
}
212
212
 
213
 
gboolean cd_netspeed_update_from_data (CairoDockModuleInstance *myApplet)
 
213
gboolean cd_netspeed_update_from_data (GldiModuleInstance *myApplet)
214
214
{
215
215
        static double s_fValues[CD_NETSPEED_NB_MAX_VALUES];
216
216
        static gchar s_upRateFormatted[11];