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)
Check Out this Related Man Page
XOSD_IS_ONSCREEN(3)XOSD_IS_ONSCREEN(3)NAME
xosd_is_onscreen - Returns wether the XOSD window is shown
SYNOPSIS
#include <xosd.h>
xosd *xosd_is_onscreen (xosd *osd);
DESCRIPTION
osd_is_onscreen determines weather a XOSD window, is currently being shown (is mapped to the X display). Because XOSD displays data asyn-
chronously (see xosd_display(3) for details) it can be difficult to know if data is being displayed, xosd_is_onscreen solves this problem.
Call xosd_show(3) or xosd_hide(3) to alter the visibility of the XOSD window.
ARGUMENTS
osd The XOSD window to query.
RETURN VALUE
A 1 is returned if the window is onscreen (mapped), or 0 if it is hidden (unmapped). On error, -1 is returned and xosd_error is set to in-
dicate the reason for the error.
ENVIRONMENT
char *xosd_error
A string to a text string describing the error, if one occurred.
HISTORY
The xosd_is_onscreen function first appeared in version 2.1 of the XOSD library.
AUTHORS
The XOSD library was originally written by Andre Renaud and is currenly maintained by Tim Wright, who also wrote the xosd_is_onscreen func-
tion. Michael JasonSmith thinks he wrote this document, but is not sure; drop Micahel an email (<mike@ldots.org>) if you think he didn't
write this document.
BUGS
There are no known bugs with xosd_is_onscreen. Bug reports can be sent to <xosd@ignavus.net>.
SEE ALSO xosd_display(3), xosd_show(3), xosd_hide(3).
XOSD_IS_ONSCREEN(3)
Good day all,
I'm hoping someone can help me understand what the percentage sign is and does in mapping a drive to a server ? I provided the example for you.
(ie \\server1\share%simon)
thanks
simon2000 (2 Replies)
int percent (int a, int b)
{
if (b/a*100 > 25)
return TRUE;
else
return FALSE;
}
I want to calculate what percentage of a is b.
say if b = 48, a = 100
so b is 48% of a
but wouldnt b/a give me 0 ??? what can be done ?? (6 Replies)
Hi, I am having the file which contains the following two columns.
518 _factorial
256 _main
73 _atol
52 ___do_global_ctors
170 ___main
52 ___do_g
How can calculate the percentage of each value in the first column ?
first need to get the sum of the first column and... (3 Replies)
hi, I am new to awk.. and getting used to the scripts. I have a small data set 5 coulms.. 16 rows.
1) I am trying to remove the percentages of each line of colum 3..like first line divided the sum of colum 3 divided by 100 and print it out. removing hte percentages of each line
I would really... (3 Replies)
Hey all. I added this to my script, hoping for a progress bar or percentage complete
lsof -o0 -o -p $$ |
awk '
BEGIN { CONVFMT = "%.2f" }
$4 ~ /^+r$/ && $7 ~ /^0t/ {
offset = substr($7, 3)
fname = $9
"stat... (6 Replies)
Hi..
I am new to Unix and trying to learn.
I have a small doubt like if we can use logical operators in searching.
My problem is I have a file which has name , roll no and percentage and I need to get the records of the students whose percentage is below certain value and then sort them by... (5 Replies)
Hi there,
I am totally new to Unix, I am trying to work out the percentage between two values in a ksh shell script and assign the result to a variable.
Value1=577
Values2=244
So the calculation would be as follows:
((Value1 - Value2) / Value1) * 100
How would I be able to achieve... (2 Replies)
Hi
I have found a problem on my AIX 5.1 server. day by day the paging size is increasing,what is the reason behind it and if percentage is at 100 what will happen. Oracle 9i is running on my server.
PAGING SPACE
size,mb 5632
% used 14.6
% free 85.3
How can i decrease the using... (6 Replies)
so i'm have been stifled here inn my attempts at this.
i need to calculate an unusual figure.
what is the percentage difference between 400 and 3?
usually, to get the percentage, you just divide the smaller number by the bigger number. then multiply the answer by 100.
in this case... (10 Replies)
Hi
I have written a utility in shell program for which i want to add a code to display percentage of completion dynamically
My scripts runs approx about 30 to 45min , It appends exactly 2000 lines to one of the log file.
How to calculate percentage ?
I will note the total number of lines... (5 Replies)
I have a Student File (rno, name, marks1, marks2, marks3)
How do I display a student with the highest percentage and with a percentage between 50-60.
and how to sort students in ascending order as per their name (1 Reply)
This matrix represents correlation values.
Is it possible to calculate the percentage of columns (a1, a2, a3) that have a value >= |0.5| and report the percentage that has positive correlation >0.5 and negative correlation <-0.5 separately. thanx in advance!
input
name a1 a2 a3... (5 Replies)
Hi,
Am trying to count the number of occurrences and then as a percentage from a log to troubleshoot errors, can someone help please
grep -o 'HTTP/1\.1\" 404 3..' access_log | wc -l
6 (5 Replies)
How to calculate percentage non zero value occurrence base on value col 1 and 2
2017 a 0
2017 a 2
2017 a 4
2017 a 2
2017 a 0
2017 b 2
2017 b 6
2016 a 2
2016 a 2
2016 b 2
2016 b 8
2016 b 0
2016 b 0
2016 c 2
2016 c 2
2016 c 0
i manage to get average
# awk '{A++;B+=$3}END{for(X in... (1 Reply)