dear friends,
does anyone know how to make the percentage of proccess of a running script?
:confused:
like we always see in windows, when we install a program, there is always an indicator using percent value (from 0% to 100%)
i need this for my time consuming script
thanks before (1 Reply)
Hi
I need a awk script to calculate percentage.
I have to pass the pararmeters in to the awk script and calculate the percentage.
Sum = 50
passed = 43
failed = 7
I need to pass these value in to the awk script and calculate the percentage.
Please advice me. (8 Replies)
Hi,
I wanted to write a schell program that fetches the values from a file and prints the output as its onerall multiplication.
for example I have a file named abc. it has values 2, 3, 4
now my program should give me 2*3*4 ie 24.
note:this file abc can have any numbers.
so experts,... (9 Replies)
I'm writing a bash script to log some selections from a sensors output (core temp, mb temp, etc.) and I would also like to have the current cpu usage as a percentage. I have no idea how to go about getting it in a form that a bash script can use. For example, I would simply look in the output of... (3 Replies)
#!/bin/sh
echo Enter the multiplication number required:
read number
for i in 1 2 3 4 5 6 7 8 9 10
do
echo "$number * $i = expr $number \* $i"
done
I am not getting the output for this multiplication table. (4 Replies)
hello,
please can you help me.
jj and kk are two numbers which are the result of an sql program.
I would like to calculate the ratio jj/kk*100.
I have done this:
ratio=$((jj/kk * 100)) or ratio=`expr $jj \/ expr $kk) but the result is 0
What can i do?
Thanks for help. (3 Replies)
Hi all,
I havea log of data.log
bear,10000,white
bear,5000,black
chicken,2000,white
chicken,4000,yellow
chicken,3000,black
lion,6000,yellow
lion,1000,white
How can we have shell script to get the percentage of each animals?
Thanks. (8 Replies)
Hi All,
I currently have a shell script which is pulling multiple counters from various sources. Due to the counters being cumulative counters I've got some code to work out the delta from the last reading and current which is working fine.
The problem i have now is being able to work out the... (8 Replies)
I need to multiply column1 and column3 data and need to compare it with column5. Need to check multiplication and Throw error if result is greater or less than column5 values, though difference of +/- 2 will be ok
Ex - if column1 has 2.4 and column3 has 3.5, it will be ok if column5 have value... (13 Replies)
having two columns, A and B.. i need to add another column C in a file and calculate the percentage based on the column A and B. (COLUMN B/ COLUMN A *100) . "|" is delimiter separating the A and B.. need C column with the percentage value. Thanks for your help
100|50 |50% ... (6 Replies)
Discussion started by: kartikirans
6 Replies
LEARN ABOUT DEBIAN
xosd_set_bar_length
XOSD_SET_BAR_LENGTH(3)XOSD_SET_BAR_LENGTH(3)NAME
xosd_set_bar_length - Change the length of the percentage bar or slider
SYNOPSIS
#include <xosd.h>
int xosd_set_bar_length (xosd *osd, int displayPercentage);
DESCRIPTION
xosd_set_bar_length changes the percentage of the display used by a slider or percentage bar. Normally the XOSD choses a sensible length
for the bar, but you may wish to change the default behavior if there are only a small number of possible values to be displayed.
ARGUMENTS
osd The XOSD window to alter.
displayPercentage
The percentage of the display to be used up by the slider or percentage bar, as an interger between 0 and 100. Setting displayPer-
centage to -1 reverts to the default behaviour.
RETURN VALUE
On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.
ENVIRONMENT
char *xosd_error
A string describing the error, if one occurred.
BUGS
There are no known bugs with xosd_set_bar_length. Bug reports can be sent to <xosd@ignavus.net>.
AUTHORS
The XOSD library was originally written by Andre Renaud, and is currently maintained by Tim Wright. This document was written by Michael
JasonSmith.
SEE ALSO xosd_create(3), xosd_display(3).
XOSD_SET_BAR_LENGTH(3)