Business-UTV
view release on metacpan or search on metacpan
bin/utv_usage_applet.pl view on Meta::CPAN
4344454647484950515253545556575859606162
"Failed to get usage :(\n"
;
exit
(1);
}
}
else
{
"Login failed :(\n"
;
exit
(1);
}
sub
update_text
{
my
$usage
=
$utv
->usage();
my
$up
=
$usage
->{
"upload"
};
my
$down
=
$usage
->{
"download"
};
Gtk2::Label::set_text(
$label
, strftime(
"%H:%M"
,
localtime
() ) .
" Up "
.
int
(
$up
) .
" Down "
.
int
(
$down
) );
return
1;
}
bin/utv_usage_tray.pl view on Meta::CPAN
686970717273747576777879808182838485868788
$usage
=
"ERROR - "
.
$Business::UTV::errstr
;
}
}
else
{
$usage
=
"ERROR - "
.
$Business::UTV::errstr
;
}
}
sub
updateUsageText_Timer
{
my
$text
= getUsageText();
$ni
->Change(
-name
=>
"NI"
,
-id
=> 1,
-icon
=>
$icon
,
-tip
=>
$text
);
return
1;
}
=head1 NAME
utv_usage_tray.pl - Windows system tray icon displaying monthly bandwidth usage
( run in 0.267 second using v1.01-cache-2.11-cpan-55f5a4728d2 )