![]() |
Re: [Support thread] Billboard Standby Screen
Quote:
Assuming you don't have a shell that can calculate in floating point, a better solution would be would be: echo "{{=$((PERCENT/100)).$(((PERCENT%100)/10))$((PERCENT%10))}}" This will work for all positive integers. |
Re: [Support thread] Billboard Standby Screen
Quote:
Anybody up for a data network signal-% script? Thanks so much. |
Re: [Support thread] Billboard Standby Screen
Quote:
Any suggestions? I'm trying to print from txt-file (for nameday.sh), encoding issues perhaps? |
Re: [Support thread] Billboard Standby Screen
Quote:
|
Re: [Support thread] Billboard Standby Screen
Quote:
Code:
#!/bin/sh thp meant to tell you that in place of PERCENT use your variable which is $percent in this case; simples and 0 coding knowledge required ;) |
Re: [Support thread] Billboard Standby Screen
Code:
$percent % " "{{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}} why not to write short and beaty scripts as here?? |
Re: [Support thread] Billboard Standby Screen
coderus,
Your script has the same fallacy from the looks of it whereby anything below 10% is not shown properly for example 3% becomes 0.3 i.e. 30% bar while thp's method accounts for single integers and 100% too... |
Re: [Support thread] Billboard Standby Screen
Quote:
|
Re: [Support thread] Billboard Standby Screen
Quote:
Quote:
|
Re: [Support thread] Billboard Standby Screen
Quote:
Also I'm using this script to show uptime in decimal numbers: Code:
#!/usr/bin/python So that it would print "9,9 days" and "10 days". Could someone put that rule to the script please? |
All times are GMT. The time now is 01:08. |
vBulletin® Version 3.8.8