public void setPercentage(double percentage) {
		this.percentage = Math.min(1.0, percentage);
		if(this.percentage > 0.99) {
			this.percentage = 1.0; 
		}
		curValue = Math.min((long)Math.ceil(percentage * maxValue), maxValue);
	}