mirror of
http://mpg123.de/trunk/.git
synced 2025-08-07 21:02:55 +03:00
Also return an error if mpg123 had problems.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@3519 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@@ -37,6 +37,8 @@ print "#decoder";
|
|||||||
for(@encs){ print " t_$_/s"; }
|
for(@encs){ print " t_$_/s"; }
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
|
my $allret = 0;
|
||||||
|
|
||||||
foreach my $cpu (@cpus)
|
foreach my $cpu (@cpus)
|
||||||
{
|
{
|
||||||
print "$cpu";
|
print "$cpu";
|
||||||
@@ -51,6 +53,7 @@ foreach my $cpu (@cpus)
|
|||||||
{
|
{
|
||||||
print STDERR "Execution of $MPG123_CMD failed with code $ret!\n";
|
print STDERR "Execution of $MPG123_CMD failed with code $ret!\n";
|
||||||
$runtime = 0;
|
$runtime = 0;
|
||||||
|
$allret = 1;
|
||||||
}
|
}
|
||||||
# third entry is child user time
|
# third entry is child user time
|
||||||
printf(" %4.2f", $runtime);
|
printf(" %4.2f", $runtime);
|
||||||
@@ -58,4 +61,4 @@ foreach my $cpu (@cpus)
|
|||||||
print("\n");
|
print("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit($allret);
|
||||||
|
Reference in New Issue
Block a user