72
76
NET_PROVIDER_DUMMY_PROPERTY
78
static gchar** net_provider_fields (gchar*** devices, int* devices_length1, int* result_length1);
74
79
NetProvider* net_provider_new (void);
75
80
NetProvider* net_provider_construct (GType object_type);
76
Provider* provider_construct (GType object_type, const gchar* id, gchar** keys, int keys_length1);
81
Provider* provider_construct (GType object_type, const gchar* id, gchar** keys, int keys_length1, gchar displaytype);
82
static gchar** _vala_array_dup21 (gchar** self, int length);
77
83
static void net_provider_real_update (Provider* base);
84
gchar** provider_get_keys (Provider* self, int* result_length1);
78
85
gdouble* provider_get_values (Provider* self, int* result_length1);
79
static guint64* _vala_array_dup18 (guint64* self, int length);
86
static guint64* _vala_array_dup22 (guint64* self, int length);
80
87
static void net_provider_finalize (GObject* obj);
81
88
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
82
89
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
83
90
static gint _vala_array_length (gpointer array);
93
static const gchar* string_to_string (const gchar* self) {
94
const gchar* result = NULL;
95
g_return_val_if_fail (self != NULL, NULL);
101
static gchar** net_provider_fields (gchar*** devices, int* devices_length1, int* result_length1) {
102
gchar** _vala_devices = NULL;
103
int _vala_devices_length1 = 0;
104
gchar** result = NULL;
105
glibtop_netlist netlist = {0};
106
glibtop_netlist _tmp0_ = {0};
107
gchar** _tmp1_ = NULL;
108
gchar** _tmp2_ = NULL;
109
gchar** _result_ = NULL;
110
glibtop_netlist _tmp3_ = {0};
112
gchar** _tmp5_ = NULL;
113
gint _result__length1 = 0;
114
gint __result__size_ = 0;
115
gchar** _tmp6_ = NULL;
116
gint _tmp6__length1 = 0;
117
gchar* _tmp7_ = NULL;
118
gchar* _tmp8_ = NULL;
119
gchar** _tmp9_ = NULL;
120
gint _tmp9__length1 = 0;
121
gchar* _tmp10_ = NULL;
122
gchar* _tmp11_ = NULL;
123
gchar** _tmp12_ = NULL;
124
gint _tmp12__length1 = 0;
125
gchar* _tmp13_ = NULL;
126
gchar* _tmp14_ = NULL;
127
gchar** _tmp37_ = NULL;
128
gint _tmp37__length1 = 0;
130
_tmp2_ = _tmp1_ = glibtop_get_netlist (&_tmp0_);
132
_vala_devices = (_vala_array_free (_vala_devices, _vala_devices_length1, (GDestroyNotify) g_free), NULL);
133
_vala_devices = _tmp2_;
134
_vala_devices_length1 = _vala_array_length (_tmp1_);
136
_tmp4_ = _tmp3_.number;
137
_tmp5_ = g_new0 (gchar*, (3 + (2 * _tmp4_)) + 1);
139
_result__length1 = 3 + (2 * _tmp4_);
140
__result__size_ = _result__length1;
142
_tmp6__length1 = _result__length1;
143
_tmp7_ = g_strdup ("down");
144
_g_free0 (_tmp6_[0]);
148
_tmp9__length1 = _result__length1;
149
_tmp10_ = g_strdup ("up");
150
_g_free0 (_tmp9_[1]);
154
_tmp12__length1 = _result__length1;
155
_tmp13_ = g_strdup ("local");
156
_g_free0 (_tmp12_[2]);
157
_tmp12_[2] = _tmp13_;
158
_tmp14_ = _tmp12_[2];
163
gboolean _tmp15_ = FALSE;
166
gboolean _tmp16_ = FALSE;
168
glibtop_netlist _tmp19_ = {0};
169
guint32 _tmp20_ = 0U;
170
gchar* device = NULL;
171
gchar** _tmp21_ = NULL;
172
gint _tmp21__length1 = 0;
174
const gchar* _tmp23_ = NULL;
175
gchar* _tmp24_ = NULL;
176
gchar** _tmp25_ = NULL;
177
gint _tmp25__length1 = 0;
179
const gchar* _tmp27_ = NULL;
180
const gchar* _tmp28_ = NULL;
181
gchar* _tmp29_ = NULL;
182
gchar* _tmp30_ = NULL;
183
gchar** _tmp31_ = NULL;
184
gint _tmp31__length1 = 0;
186
const gchar* _tmp33_ = NULL;
187
const gchar* _tmp34_ = NULL;
188
gchar* _tmp35_ = NULL;
189
gchar* _tmp36_ = NULL;
199
_tmp20_ = _tmp19_.number;
200
if (!(_tmp18_ < ((guint) _tmp20_))) {
203
_tmp21_ = _vala_devices;
204
_tmp21__length1 = _vala_devices_length1;
206
_tmp23_ = _tmp21_[_tmp22_];
207
_tmp24_ = g_strdup (_tmp23_);
210
_tmp25__length1 = _result__length1;
213
_tmp28_ = string_to_string (_tmp27_);
214
_tmp29_ = g_strconcat (_tmp28_, ".down", NULL);
215
_g_free0 (_tmp25_[3 + (2 * _tmp26_)]);
216
_tmp25_[3 + (2 * _tmp26_)] = _tmp29_;
217
_tmp30_ = _tmp25_[3 + (2 * _tmp26_)];
219
_tmp31__length1 = _result__length1;
222
_tmp34_ = string_to_string (_tmp33_);
223
_tmp35_ = g_strconcat (_tmp34_, ".up", NULL);
224
_g_free0 (_tmp31_[(3 + (2 * _tmp32_)) + 1]);
225
_tmp31_[(3 + (2 * _tmp32_)) + 1] = _tmp35_;
226
_tmp36_ = _tmp31_[(3 + (2 * _tmp32_)) + 1];
232
_tmp37__length1 = _result__length1;
233
if (result_length1) {
234
*result_length1 = _tmp37__length1;
238
*devices = _vala_devices;
240
_vala_devices = (_vala_array_free (_vala_devices, _vala_devices_length1, (GDestroyNotify) g_free), NULL);
242
if (devices_length1) {
243
*devices_length1 = _vala_devices_length1;
249
static gchar** _vala_array_dup21 (gchar** self, int length) {
252
result = g_new0 (gchar*, length + 1);
253
for (i = 0; i < length; i++) {
254
gchar* _tmp0_ = NULL;
255
_tmp0_ = g_strdup (self[i]);
86
262
NetProvider* net_provider_construct (GType object_type) {
87
263
NetProvider * self = NULL;
264
gchar** devices = NULL;
265
gint devices_length1 = 0;
266
gint _devices_size_ = 0;
267
gchar** _tmp0_ = NULL;
91
270
gchar** _tmp3_ = NULL;
94
_tmp0_ = g_strdup ("down");
95
_tmp1_ = g_strdup ("up");
96
_tmp2_ = g_strdup ("local");
97
_tmp3_ = g_new0 (gchar*, 3 + 1);
271
gchar** _tmp4_ = NULL;
272
gint _tmp4__length1 = 0;
273
gchar** _tmp5_ = NULL;
274
gint _tmp5__length1 = 0;
275
_tmp3_ = net_provider_fields (&_tmp0_, &_tmp1_, &_tmp2_);
276
devices = (_vala_array_free (devices, devices_length1, (GDestroyNotify) g_free), NULL);
278
devices_length1 = _tmp1_;
279
_devices_size_ = devices_length1;
103
self = (NetProvider*) provider_construct (object_type, "net", _tmp4_, 3);
281
_tmp4__length1 = _tmp2_;
282
self = (NetProvider*) provider_construct (object_type, "net", _tmp4_, _tmp2_, 's');
104
283
_tmp4_ = (_vala_array_free (_tmp4_, _tmp4__length1, (GDestroyNotify) g_free), NULL);
284
_tmp5_ = (devices != NULL) ? _vala_array_dup21 (devices, devices_length1) : ((gpointer) devices);
285
_tmp5__length1 = devices_length1;
286
self->priv->devicefields = (_vala_array_free (self->priv->devicefields, self->priv->devicefields_length1, (GDestroyNotify) g_free), NULL);
287
self->priv->devicefields = _tmp5_;
288
self->priv->devicefields_length1 = _tmp5__length1;
289
self->priv->_devicefields_size_ = self->priv->devicefields_length1;
290
devices = (_vala_array_free (devices, devices_length1, (GDestroyNotify) g_free), NULL);
114
static guint64* _vala_array_dup18 (guint64* self, int length) {
300
static guint64* _vala_array_dup22 (guint64* self, int length) {
115
301
return g_memdup (self, length * sizeof (guint64));
119
305
static void net_provider_real_update (Provider* base) {
120
306
NetProvider * self;
121
guint64* _tmp0_ = NULL;
123
gint newdata_length1;
125
guint64 _tmp1_ = 0ULL;
307
guint64* newdata = NULL;
308
gchar** _tmp0_ = NULL;
309
gint _tmp0__length1 = 0;
310
gchar** _tmp1_ = NULL;
311
gint _tmp1__length1 = 0;
312
guint64* _tmp2_ = NULL;
313
gint newdata_length1 = 0;
314
gint _newdata_size_ = 0;
315
guint64 newtime = 0ULL;
316
guint64 _tmp3_ = 0ULL;
317
glibtop_netlist netlist = {0};
127
318
gchar** devices = NULL;
319
glibtop_netlist _tmp4_ = {0};
320
gchar** _tmp5_ = NULL;
321
gchar** _tmp6_ = NULL;
128
322
gint devices_length1 = 0;
129
323
gint _devices_size_ = 0;
130
glibtop_netlist netlist = {0};
131
glibtop_netlist _tmp2_ = {0};
133
gchar** _tmp4_ = NULL;
134
glibtop_netlist _tmp5_;
137
gint _tmp89__length1;
139
gint _tmp110__length1;
141
gint _tmp111__length1;
143
self = NET_PROVIDER (base);
144
_tmp0_ = g_new0 (guint64, 3);
324
glibtop_netlist _tmp7_ = {0};
326
guint64* _tmp163_ = NULL;
327
gint _tmp163__length1 = 0;
328
guint64* _tmp184_ = NULL;
329
gint _tmp184__length1 = 0;
330
guint64* _tmp185_ = NULL;
331
gint _tmp185__length1 = 0;
332
guint64 _tmp186_ = 0ULL;
333
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NET_PROVIDER, NetProvider);
334
_tmp0_ = provider_get_keys (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROVIDER, Provider), &_tmp0__length1);
336
_tmp1__length1 = _tmp0__length1;
337
_tmp2_ = g_new0 (guint64, _tmp1__length1);
339
newdata_length1 = _tmp1__length1;
147
340
_newdata_size_ = newdata_length1;
148
_tmp1_ = g_get_monotonic_time ();
150
_tmp4_ = _tmp3_ = glibtop_get_netlist (&_tmp2_);
152
devices = (_vala_array_free (devices, devices_length1, (GDestroyNotify) g_free), NULL);
154
devices_length1 = _vala_array_length (_tmp3_);
341
_tmp3_ = g_get_monotonic_time ();
343
_tmp6_ = _tmp5_ = glibtop_get_netlist (&_tmp4_);
346
devices_length1 = _vala_array_length (_tmp5_);
155
347
_devices_size_ = devices_length1;
157
_tmp6_ = _tmp5_.number;
158
g_debug ("netprovider.vala:34: Netlist: %u entries", (guint) _tmp6_);
349
_tmp8_ = _tmp7_.number;
350
g_debug ("netprovider.vala:54: Netlist: %u entries", (guint) _tmp8_);
355
gboolean _tmp9_ = FALSE;
168
glibtop_netlist _tmp11_;
358
gboolean _tmp10_ = FALSE;
360
glibtop_netlist _tmp13_ = {0};
361
guint32 _tmp14_ = 0U;
362
gchar* device = NULL;
363
gchar** _tmp15_ = NULL;
364
gint _tmp15__length1 = 0;
366
const gchar* _tmp17_ = NULL;
367
gchar* _tmp18_ = NULL;
170
368
glibtop_netload netload = {0};
172
gint _tmp13__length1;
174
const gchar* _tmp15_;
175
glibtop_netload _tmp16_ = {0};
177
gint _tmp17__length1;
179
const gchar* _tmp19_;
180
glibtop_netload _tmp20_;
182
glibtop_netload _tmp22_;
184
glibtop_netload _tmp24_;
186
glibtop_netload _tmp26_;
188
glibtop_netload _tmp28_;
190
glibtop_netload _tmp30_;
192
glibtop_netload _tmp32_;
194
glibtop_netload _tmp34_;
196
glibtop_netload _tmp36_;
198
glibtop_netload _tmp38_;
200
glibtop_netload _tmp40_;
202
glibtop_netload _tmp42_;
204
glibtop_netload _tmp44_;
206
glibtop_netload _tmp46_;
208
glibtop_netload _tmp48_;
210
glibtop_netload _tmp50_;
213
glibtop_netload _tmp53_;
369
const gchar* _tmp19_ = NULL;
370
glibtop_netload _tmp20_ = {0};
371
const gchar* _tmp21_ = NULL;
372
gchar* _tmp22_ = NULL;
373
gchar* _tmp23_ = NULL;
374
glibtop_netload _tmp24_ = {0};
375
guint64 _tmp25_ = 0ULL;
376
glibtop_netload _tmp26_ = {0};
377
guint64 _tmp27_ = 0ULL;
378
glibtop_netload _tmp28_ = {0};
379
guint32 _tmp29_ = 0U;
380
gchar* _tmp30_ = NULL;
381
gchar* _tmp31_ = NULL;
382
gchar* _tmp32_ = NULL;
383
gchar* _tmp33_ = NULL;
384
glibtop_netload _tmp34_ = {0};
385
guint32 _tmp35_ = 0U;
386
gchar* _tmp36_ = NULL;
387
gchar* _tmp37_ = NULL;
388
gchar* _tmp38_ = NULL;
389
gchar* _tmp39_ = NULL;
390
glibtop_netload _tmp40_ = {0};
391
guint32 _tmp41_ = 0U;
392
gchar* _tmp42_ = NULL;
393
gchar* _tmp43_ = NULL;
394
gchar* _tmp44_ = NULL;
395
gchar* _tmp45_ = NULL;
396
glibtop_netload _tmp46_ = {0};
397
guint64 _tmp47_ = 0ULL;
398
gchar* _tmp48_ = NULL;
399
gchar* _tmp49_ = NULL;
400
gchar* _tmp50_ = NULL;
401
gchar* _tmp51_ = NULL;
402
glibtop_netload _tmp52_ = {0};
403
guint64 _tmp53_ = 0ULL;
404
gchar* _tmp54_ = NULL;
405
gchar* _tmp55_ = NULL;
406
gchar* _tmp56_ = NULL;
407
gchar* _tmp57_ = NULL;
408
glibtop_netload _tmp58_ = {0};
409
guint64 _tmp59_ = 0ULL;
410
gchar* _tmp60_ = NULL;
411
gchar* _tmp61_ = NULL;
412
gchar* _tmp62_ = NULL;
413
gchar* _tmp63_ = NULL;
414
glibtop_netload _tmp64_ = {0};
415
guint64 _tmp65_ = 0ULL;
416
gchar* _tmp66_ = NULL;
417
gchar* _tmp67_ = NULL;
418
gchar* _tmp68_ = NULL;
419
gchar* _tmp69_ = NULL;
420
glibtop_netload _tmp70_ = {0};
421
guint64 _tmp71_ = 0ULL;
422
gchar* _tmp72_ = NULL;
423
gchar* _tmp73_ = NULL;
424
gchar* _tmp74_ = NULL;
425
gchar* _tmp75_ = NULL;
426
glibtop_netload _tmp76_ = {0};
427
guint64 _tmp77_ = 0ULL;
428
gchar* _tmp78_ = NULL;
429
gchar* _tmp79_ = NULL;
430
gchar* _tmp80_ = NULL;
431
gchar* _tmp81_ = NULL;
432
glibtop_netload _tmp82_ = {0};
433
guint64 _tmp83_ = 0ULL;
434
gchar* _tmp84_ = NULL;
435
gchar* _tmp85_ = NULL;
436
gchar* _tmp86_ = NULL;
437
gchar* _tmp87_ = NULL;
438
glibtop_netload _tmp88_ = {0};
439
guint64 _tmp89_ = 0ULL;
440
gchar* _tmp90_ = NULL;
441
gchar* _tmp91_ = NULL;
442
gchar* _tmp92_ = NULL;
443
gchar* _tmp93_ = NULL;
444
glibtop_netload _tmp94_ = {0};
445
guint64 _tmp95_ = 0ULL;
446
gchar* _tmp96_ = NULL;
447
gchar* _tmp97_ = NULL;
448
gchar* _tmp98_ = NULL;
449
gchar* _tmp99_ = NULL;
450
glibtop_netload _tmp100_ = {0};
451
guint64 _tmp101_ = 0ULL;
452
gchar* _tmp102_ = NULL;
453
gchar* _tmp103_ = NULL;
454
gchar* _tmp104_ = NULL;
455
gchar* _tmp105_ = NULL;
456
glibtop_netload _tmp106_ = {0};
457
guint64 _tmp107_ = 0ULL;
459
glibtop_netload _tmp109_ = {0};
460
guint64 _tmp110_ = 0ULL;
225
_tmp12_ = _tmp11_.number;
226
if (!(_tmp10_ < ((guint) _tmp12_))) {
471
_tmp14_ = _tmp13_.number;
472
if (!(_tmp12_ < ((guint) _tmp14_))) {
230
_tmp13__length1 = devices_length1;
232
_tmp15_ = _tmp13_[_tmp14_];
233
glibtop_get_netload (&_tmp16_, _tmp15_);
236
_tmp17__length1 = devices_length1;
238
_tmp19_ = _tmp17_[_tmp18_];
239
g_debug ("netprovider.vala:38: Netload: %s", _tmp19_);
241
_tmp21_ = _tmp20_.flags;
242
g_debug ("netprovider.vala:39: flags: %llx", _tmp21_);
244
_tmp23_ = _tmp22_.if_flags;
245
g_debug ("netprovider.vala:40: if flags: %llx", _tmp23_);
476
_tmp15__length1 = devices_length1;
478
_tmp17_ = _tmp15_[_tmp16_];
479
_tmp18_ = g_strdup (_tmp17_);
482
glibtop_get_netload (&_tmp20_, _tmp19_);
485
_tmp22_ = g_strconcat ("Netload: ", _tmp21_, NULL);
487
g_debug ("netprovider.vala:59: %s", _tmp23_);
246
489
_tmp24_ = netload;
247
_tmp25_ = _tmp24_.mtu;
248
g_debug ("netprovider.vala:41: mtu: %u", (guint) _tmp25_);
490
_tmp25_ = _tmp24_.flags;
491
g_debug ("netprovider.vala:60: flags: %x", (guint) ((guint32) _tmp25_));
249
492
_tmp26_ = netload;
250
_tmp27_ = _tmp26_.subnet;
251
g_debug ("netprovider.vala:42: subnet: %u", (guint) _tmp27_);
493
_tmp27_ = _tmp26_.if_flags;
494
g_debug ("netprovider.vala:61: if flags: %x", (guint) ((guint32) _tmp27_));
252
495
_tmp28_ = netload;
253
_tmp29_ = _tmp28_.address;
254
g_debug ("netprovider.vala:43: address: %u", (guint) _tmp29_);
256
_tmp31_ = _tmp30_.packets_in;
257
g_debug ("netprovider.vala:44: packets in: %llu", _tmp31_);
259
_tmp33_ = _tmp32_.packets_out;
260
g_debug ("netprovider.vala:45: packets out: %llu", _tmp33_);
496
_tmp29_ = _tmp28_.mtu;
497
_tmp30_ = g_strdup_printf ("%u", _tmp29_);
499
_tmp32_ = g_strconcat (" mtu: ", _tmp31_, NULL);
501
g_debug ("netprovider.vala:62: %s", _tmp33_);
261
504
_tmp34_ = netload;
262
_tmp35_ = _tmp34_.packets_total;
263
g_debug ("netprovider.vala:46: packets total: %llu", _tmp35_);
265
_tmp37_ = _tmp36_.bytes_in;
266
g_debug ("netprovider.vala:47: bytes in: %llu", _tmp37_);
268
_tmp39_ = _tmp38_.bytes_out;
269
g_debug ("netprovider.vala:48: bytes out: %llu", _tmp39_);
505
_tmp35_ = _tmp34_.subnet;
506
_tmp36_ = g_strdup_printf ("%u", _tmp35_);
508
_tmp38_ = g_strconcat (" subnet: ", _tmp37_, NULL);
510
g_debug ("netprovider.vala:63: %s", _tmp39_);
270
513
_tmp40_ = netload;
271
_tmp41_ = _tmp40_.bytes_total;
272
g_debug ("netprovider.vala:49: bytes total: %llu", _tmp41_);
274
_tmp43_ = _tmp42_.errors_in;
275
g_debug ("netprovider.vala:50: errors in: %llu", _tmp43_);
277
_tmp45_ = _tmp44_.errors_out;
278
g_debug ("netprovider.vala:51: errors out: %llu", _tmp45_);
514
_tmp41_ = _tmp40_.address;
515
_tmp42_ = g_strdup_printf ("%u", _tmp41_);
517
_tmp44_ = g_strconcat (" address: ", _tmp43_, NULL);
519
g_debug ("netprovider.vala:64: %s", _tmp45_);
279
522
_tmp46_ = netload;
280
_tmp47_ = _tmp46_.errors_total;
281
g_debug ("netprovider.vala:52: errors total: %llu", _tmp47_);
283
_tmp49_ = _tmp48_.collisions;
284
g_debug ("netprovider.vala:53: collisions: %llu", _tmp49_);
286
_tmp51_ = _tmp50_.if_flags;
287
_tmp52_ = GLIBTOP_IF_FLAGS_UP;
289
_tmp54_ = _tmp53_.if_flags;
290
_tmp55_ = GLIBTOP_IF_FLAGS_RUNNING;
291
if (((_tmp51_ & (1L << _tmp52_)) == ((guint64) 0)) | ((_tmp54_ & (1L << _tmp55_)) == ((guint64) 0))) {
292
g_debug ("netprovider.vala:57: down or not running");
523
_tmp47_ = _tmp46_.packets_in;
524
_tmp48_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp47_);
526
_tmp50_ = g_strconcat (" packets in: ", _tmp49_, NULL);
528
g_debug ("netprovider.vala:65: %s", _tmp51_);
532
_tmp53_ = _tmp52_.packets_out;
533
_tmp54_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp53_);
535
_tmp56_ = g_strconcat (" packets out: ", _tmp55_, NULL);
537
g_debug ("netprovider.vala:66: %s", _tmp57_);
541
_tmp59_ = _tmp58_.packets_total;
542
_tmp60_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp59_);
544
_tmp62_ = g_strconcat (" packets total: ", _tmp61_, NULL);
546
g_debug ("netprovider.vala:67: %s", _tmp63_);
550
_tmp65_ = _tmp64_.bytes_in;
551
_tmp66_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp65_);
553
_tmp68_ = g_strconcat (" bytes in: ", _tmp67_, NULL);
555
g_debug ("netprovider.vala:68: %s", _tmp69_);
559
_tmp71_ = _tmp70_.bytes_out;
560
_tmp72_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp71_);
562
_tmp74_ = g_strconcat (" bytes out: ", _tmp73_, NULL);
564
g_debug ("netprovider.vala:69: %s", _tmp75_);
568
_tmp77_ = _tmp76_.bytes_total;
569
_tmp78_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp77_);
571
_tmp80_ = g_strconcat (" bytes total: ", _tmp79_, NULL);
573
g_debug ("netprovider.vala:70: %s", _tmp81_);
577
_tmp83_ = _tmp82_.errors_in;
578
_tmp84_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp83_);
580
_tmp86_ = g_strconcat (" errors in: ", _tmp85_, NULL);
582
g_debug ("netprovider.vala:71: %s", _tmp87_);
586
_tmp89_ = _tmp88_.errors_out;
587
_tmp90_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp89_);
589
_tmp92_ = g_strconcat (" errors out: ", _tmp91_, NULL);
591
g_debug ("netprovider.vala:72: %s", _tmp93_);
595
_tmp95_ = _tmp94_.errors_total;
596
_tmp96_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp95_);
598
_tmp98_ = g_strconcat (" errors total: ", _tmp97_, NULL);
600
g_debug ("netprovider.vala:73: %s", _tmp99_);
604
_tmp101_ = _tmp100_.collisions;
605
_tmp102_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp101_);
607
_tmp104_ = g_strconcat (" collisions: ", _tmp103_, NULL);
609
g_debug ("netprovider.vala:74: %s", _tmp105_);
613
_tmp107_ = _tmp106_.if_flags;
614
_tmp108_ = GLIBTOP_IF_FLAGS_UP;
616
_tmp110_ = _tmp109_.if_flags;
617
_tmp111_ = GLIBTOP_IF_FLAGS_RUNNING;
618
if (((_tmp107_ & (1L << _tmp108_)) == ((guint64) 0)) | ((_tmp110_ & (1L << _tmp111_)) == ((guint64) 0))) {
619
g_debug ("netprovider.vala:78: down or not running");
295
gint _tmp56__length1;
297
const gchar* _tmp58_;
298
gchar* _tmp59_ = NULL;
300
gboolean _tmp61_ = FALSE;
303
_tmp56__length1 = devices_length1;
305
_tmp58_ = _tmp56_[_tmp57_];
306
_tmp59_ = g_strdup_printf ("/sys/class/net/%s/device", _tmp58_);
308
_tmp61_ = g_file_test (_tmp60_, G_FILE_TEST_EXISTS);
313
gint _tmp63__length1;
314
glibtop_netload _tmp64_;
318
gint _tmp67__length1;
319
glibtop_netload _tmp68_;
323
_tmp63__length1 = newdata_length1;
325
_tmp65_ = _tmp64_.bytes_in;
326
_tmp63_[0] += _tmp65_;
327
_tmp66_ = _tmp63_[0];
329
_tmp67__length1 = newdata_length1;
331
_tmp69_ = _tmp68_.bytes_out;
332
_tmp67_[1] += _tmp69_;
333
_tmp70_ = _tmp67_[1];
334
g_debug ("netprovider.vala:61: existing device link");
621
const gchar* _tmp112_ = NULL;
622
gchar* _tmp113_ = NULL;
623
gchar* _tmp114_ = NULL;
624
gboolean _tmp115_ = FALSE;
625
gboolean _tmp116_ = FALSE;
627
_tmp113_ = g_strdup_printf ("/sys/class/net/%s/device", _tmp112_);
629
_tmp115_ = g_file_test (_tmp114_, G_FILE_TEST_EXISTS);
633
guint64* _tmp117_ = NULL;
634
gint _tmp117__length1 = 0;
635
glibtop_netload _tmp118_ = {0};
636
guint64 _tmp119_ = 0ULL;
637
guint64 _tmp120_ = 0ULL;
638
guint64* _tmp121_ = NULL;
639
gint _tmp121__length1 = 0;
640
glibtop_netload _tmp122_ = {0};
641
guint64 _tmp123_ = 0ULL;
642
guint64 _tmp124_ = 0ULL;
644
_tmp117__length1 = newdata_length1;
646
_tmp119_ = _tmp118_.bytes_in;
647
_tmp117_[0] += _tmp119_;
648
_tmp120_ = _tmp117_[0];
650
_tmp121__length1 = newdata_length1;
652
_tmp123_ = _tmp122_.bytes_out;
653
_tmp121_[1] += _tmp123_;
654
_tmp124_ = _tmp121_[1];
655
g_debug ("netprovider.vala:82: existing device link");
336
glibtop_netload _tmp71_;
340
_tmp72_ = _tmp71_.if_flags;
341
_tmp73_ = GLIBTOP_IF_FLAGS_POINTOPOINT;
342
if ((_tmp72_ & (1L << _tmp73_)) > ((guint64) 0)) {
344
gint _tmp74__length1;
345
glibtop_netload _tmp75_;
349
gint _tmp78__length1;
350
glibtop_netload _tmp79_;
354
_tmp74__length1 = newdata_length1;
356
_tmp76_ = _tmp75_.bytes_in;
357
_tmp74_[0] += _tmp76_;
358
_tmp77_ = _tmp74_[0];
360
_tmp78__length1 = newdata_length1;
362
_tmp80_ = _tmp79_.bytes_out;
363
_tmp78_[1] += _tmp80_;
364
_tmp81_ = _tmp78_[1];
365
g_debug ("netprovider.vala:65: pointtopoint");
657
glibtop_netload _tmp125_ = {0};
658
guint64 _tmp126_ = 0ULL;
661
_tmp126_ = _tmp125_.if_flags;
662
_tmp127_ = GLIBTOP_IF_FLAGS_POINTOPOINT;
663
if ((_tmp126_ & (1L << _tmp127_)) > ((guint64) 0)) {
664
guint64* _tmp128_ = NULL;
665
gint _tmp128__length1 = 0;
666
glibtop_netload _tmp129_ = {0};
667
guint64 _tmp130_ = 0ULL;
668
guint64 _tmp131_ = 0ULL;
669
guint64* _tmp132_ = NULL;
670
gint _tmp132__length1 = 0;
671
glibtop_netload _tmp133_ = {0};
672
guint64 _tmp134_ = 0ULL;
673
guint64 _tmp135_ = 0ULL;
675
_tmp128__length1 = newdata_length1;
677
_tmp130_ = _tmp129_.bytes_in;
678
_tmp128_[0] += _tmp130_;
679
_tmp131_ = _tmp128_[0];
681
_tmp132__length1 = newdata_length1;
683
_tmp134_ = _tmp133_.bytes_out;
684
_tmp132_[1] += _tmp134_;
685
_tmp135_ = _tmp132_[1];
686
g_debug ("netprovider.vala:86: pointtopoint");
367
glibtop_netload _tmp82_;
371
_tmp83_ = _tmp82_.if_flags;
372
_tmp84_ = GLIBTOP_IF_FLAGS_LOOPBACK;
373
if ((_tmp83_ & (1L << _tmp84_)) > ((guint64) 0)) {
375
gint _tmp85__length1;
376
glibtop_netload _tmp86_;
380
_tmp85__length1 = newdata_length1;
382
_tmp87_ = _tmp86_.bytes_in;
383
_tmp85_[2] += _tmp87_;
384
_tmp88_ = _tmp85_[2];
385
g_debug ("netprovider.vala:68: loopback");
688
glibtop_netload _tmp136_ = {0};
689
guint64 _tmp137_ = 0ULL;
692
_tmp137_ = _tmp136_.if_flags;
693
_tmp138_ = GLIBTOP_IF_FLAGS_LOOPBACK;
694
if ((_tmp137_ & (1L << _tmp138_)) > ((guint64) 0)) {
695
guint64* _tmp139_ = NULL;
696
gint _tmp139__length1 = 0;
697
glibtop_netload _tmp140_ = {0};
698
guint64 _tmp141_ = 0ULL;
699
guint64 _tmp142_ = 0ULL;
701
_tmp139__length1 = newdata_length1;
703
_tmp141_ = _tmp140_.bytes_in;
704
_tmp139_[2] += _tmp141_;
705
_tmp142_ = _tmp139_[2];
706
g_debug ("netprovider.vala:89: loopback");
387
g_debug ("netprovider.vala:70: unknown");
708
g_debug ("netprovider.vala:91: unknown");
716
gchar** _tmp143_ = NULL;
717
gint _tmp143__length1 = 0;
719
_tmp143_ = self->priv->devicefields;
720
_tmp143__length1 = self->priv->devicefields_length1;
721
isize = (guint) _tmp143__length1;
723
gboolean _tmp144_ = FALSE;
726
gboolean _tmp145_ = FALSE;
729
gchar** _tmp149_ = NULL;
730
gint _tmp149__length1 = 0;
732
const gchar* _tmp151_ = NULL;
733
const gchar* _tmp152_ = NULL;
743
if (!(_tmp147_ < _tmp148_)) {
746
_tmp149_ = self->priv->devicefields;
747
_tmp149__length1 = self->priv->devicefields_length1;
749
_tmp151_ = _tmp149_[_tmp150_];
751
if (g_strcmp0 (_tmp151_, _tmp152_) == 0) {
752
guint64* _tmp153_ = NULL;
753
gint _tmp153__length1 = 0;
755
glibtop_netload _tmp155_ = {0};
756
guint64 _tmp156_ = 0ULL;
757
guint64 _tmp157_ = 0ULL;
758
guint64* _tmp158_ = NULL;
759
gint _tmp158__length1 = 0;
761
glibtop_netload _tmp160_ = {0};
762
guint64 _tmp161_ = 0ULL;
763
guint64 _tmp162_ = 0ULL;
765
_tmp153__length1 = newdata_length1;
768
_tmp156_ = _tmp155_.bytes_in;
769
_tmp153_[3 + (_tmp154_ * 2)] = _tmp156_;
770
_tmp157_ = _tmp153_[3 + (_tmp154_ * 2)];
772
_tmp158__length1 = newdata_length1;
775
_tmp161_ = _tmp160_.bytes_out;
776
_tmp158_[(3 + (_tmp159_ * 2)) + 1] = _tmp161_;
777
_tmp162_ = _tmp158_[(3 + (_tmp159_ * 2)) + 1];
395
_tmp89_ = self->priv->lastdata;
396
_tmp89__length1 = self->priv->lastdata_length1;
397
if (_tmp89__length1 != 0) {
402
_tmp91_ = self->priv->lasttime;
403
delta = (_tmp90_ - _tmp91_) / 1e6;
787
_tmp163_ = self->priv->lastdata;
788
_tmp163__length1 = self->priv->lastdata_length1;
789
if (_tmp163__length1 != 0) {
791
guint64 _tmp164_ = 0ULL;
792
guint64 _tmp165_ = 0ULL;
794
_tmp165_ = self->priv->lasttime;
795
delta = (_tmp164_ - _tmp165_) / 1e6;
407
gint _tmp92__length1;
409
gint _tmp93__length1;
799
gdouble* _tmp166_ = NULL;
800
gint _tmp166__length1 = 0;
801
gdouble* _tmp167_ = NULL;
802
gint _tmp167__length1 = 0;
412
_tmp92_ = provider_get_values (PROVIDER (self), &_tmp92__length1);
414
_tmp93__length1 = _tmp92__length1;
415
isize = (guint) _tmp93__length1;
804
_tmp166_ = provider_get_values (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROVIDER, Provider), &_tmp166__length1);
806
_tmp167__length1 = _tmp166__length1;
807
isize = (guint) _tmp167__length1;
809
gboolean _tmp168_ = FALSE;
424
gint _tmp99__length1;
426
gint _tmp100__length1;
429
gint _tmp102__length1;
433
gint _tmp105__length1;
812
gboolean _tmp169_ = FALSE;
815
gdouble* _tmp173_ = NULL;
816
gint _tmp173__length1 = 0;
817
gdouble* _tmp174_ = NULL;
818
gint _tmp174__length1 = 0;
820
guint64* _tmp176_ = NULL;
821
gint _tmp176__length1 = 0;
823
guint64 _tmp178_ = 0ULL;
824
guint64* _tmp179_ = NULL;
825
gint _tmp179__length1 = 0;
827
guint64 _tmp181_ = 0ULL;
828
gdouble _tmp182_ = 0.0;
829
gdouble _tmp183_ = 0.0;
447
if (!(_tmp97_ < _tmp98_)) {
839
if (!(_tmp171_ < _tmp172_)) {
450
_tmp99_ = provider_get_values (PROVIDER (self), &_tmp99__length1);
452
_tmp100__length1 = _tmp99__length1;
455
_tmp102__length1 = newdata_length1;
457
_tmp104_ = _tmp102_[_tmp103_];
458
_tmp105_ = self->priv->lastdata;
459
_tmp105__length1 = self->priv->lastdata_length1;
461
_tmp107_ = _tmp105_[_tmp106_];
463
_tmp100_[_tmp101_] = (_tmp104_ - _tmp107_) / _tmp108_;
464
_tmp109_ = _tmp100_[_tmp101_];
842
_tmp173_ = provider_get_values (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROVIDER, Provider), &_tmp173__length1);
844
_tmp174__length1 = _tmp173__length1;
847
_tmp176__length1 = newdata_length1;
849
_tmp178_ = _tmp176_[_tmp177_];
850
_tmp179_ = self->priv->lastdata;
851
_tmp179__length1 = self->priv->lastdata_length1;
853
_tmp181_ = _tmp179_[_tmp180_];
855
_tmp174_[_tmp175_] = (_tmp178_ - _tmp181_) / _tmp182_;
856
_tmp183_ = _tmp174_[_tmp175_];
470
_tmp110__length1 = newdata_length1;
471
_tmp111_ = (_tmp110_ != NULL) ? _vala_array_dup18 (_tmp110_, _tmp110__length1) : ((gpointer) _tmp110_);
472
_tmp111__length1 = _tmp110__length1;
862
_tmp184__length1 = newdata_length1;
863
_tmp185_ = (_tmp184_ != NULL) ? _vala_array_dup22 (_tmp184_, _tmp184__length1) : ((gpointer) _tmp184_);
864
_tmp185__length1 = _tmp184__length1;
473
865
self->priv->lastdata = (g_free (self->priv->lastdata), NULL);
474
self->priv->lastdata = _tmp111_;
475
self->priv->lastdata_length1 = _tmp111__length1;
866
self->priv->lastdata = _tmp185_;
867
self->priv->lastdata_length1 = _tmp185__length1;
476
868
self->priv->_lastdata_size_ = self->priv->lastdata_length1;
478
self->priv->lasttime = _tmp112_;
870
self->priv->lasttime = _tmp186_;
479
871
devices = (_vala_array_free (devices, devices_length1, (GDestroyNotify) g_free), NULL);
480
872
newdata = (g_free (newdata), NULL);