1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00

readability improved

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@93 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi
2006-09-14 18:04:43 +00:00
parent 2a26ab6bb4
commit e1ade6c3b2
-5
View File
@@ -56,9 +56,7 @@ label_list_ptr get_y_label_list(int c_hight, int padding, int zero_min){
}
diff = max_val - min_val;
factor = ( ((double)c_hight - (2 * padding)) / ((double)diff) );
padd_val = (1 / factor) * ((double)padding);
real_min = min_val - padd_val;
@@ -75,14 +73,11 @@ label_list_ptr get_y_label_list(int c_hight, int padding, int zero_min){
}
interval = temp / koeff;
num = floor( real_diff / interval );
DEBUGOUT2(" Interval: %d \n", interval);
temp = ceil(real_min);
buff = malloc(sizeof(char)*BUFFSIZE);
for (i = 0; i < num; i++){