Compare commits

...

5 commits

Author SHA1 Message Date
Harald Hope
15a55d0b94 added gitattritubes 2023-12-05 12:39:25 -08:00
Harald Hope
308f2a97be readme, dumping opencollective in favor of liberapay 2023-11-28 22:37:13 -08:00
Harald Hope
4d6c596ed6 cleaned up code 2023-11-02 21:41:58 -07:00
Harald Hope
8c3b64c74d bug fix, undefined value possible 2023-11-02 20:00:09 -07:00
Harald Hope
bf13ee49a8 small bug, creates out put glitch, but not error 2023-11-02 18:46:12 -07:00
3 changed files with 5 additions and 3 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
inxi linguist-language=Perl

View file

@ -56,7 +56,7 @@ Help support the project with a one time or a sustaining donation.
Paypal: https://www.paypal.com/donate/?hosted_button_id=77DQVM6A4L5E2
Open Collective: https://opencollective.com/inxi
LiberaPay (sustaining donations): https://liberapay.com/smxi/
================================================================================
DEVELOPMENT AND ISSUES

5
inxi
View file

@ -50,7 +50,7 @@ use POSIX qw(ceil uname strftime ttyname);
## INXI INFO ##
my $self_name='inxi';
my $self_version='3.3.31';
my $self_date='2023-10-31';
my $self_date='2023-11-02';
my $self_patch='00';
## END INXI INFO ##
@ -2711,7 +2711,7 @@ sub download_file {
sub get_file_http_tiny {
my ($type,$url,$file,$ua) = @_;
$ua = ($ua && $dl{'ua'}) ? $dl{'ua'} . $ua: '';
my %headers = ($ua) ? ('agent' => $ua) : undef;
my %headers = ($ua) ? ('agent' => $ua) : ();
my $tiny = HTTP::Tiny->new(%headers);
# note: default is no verify, so default here actually is to verify unless overridden
$tiny->verify_SSL => 1 if !$use{'no-ssl'};
@ -26491,6 +26491,7 @@ sub load_sys_data {
$adapter .= '-' . $hwmons{$hwmon}->{'device'};
($unit,$value,@values) = ();
foreach my $item (@{$hwmons{$hwmon}->{'sensors'}}){
next if !defined $item->{'id'};
my $name = ($item->{'label'}) ? $item->{'label'}: $item->{'id'};
if ($item->{'id'} =~ /^temp/){
$unit = 'C';