summaryrefslogtreecommitdiffstats
path: root/fb-helper.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-22fb-helper: only display progress bar is stderr is a ttyFlorian Pritz1-4/+9
If fb is used in a cronjob we don't care about the progress bar. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: initialise *curl and check before cleaning upFlorian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04Error on 0-byte filesFlorian Pritz1-0/+6
No point in uploading a really empty file and it might even cause confusion to see an empty page when clicking the link. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04fb-helper: properly clean up upon errorFlorian Pritz1-5/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-16fb-helper.c: remove "OVER 9000" jokeFlorian Pritz1-3/+1
9000 hours is just over one year and probably nobody is ever going to hit this. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: remove unused FORMAT_ARRAY_SIZE defineFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: change format_bytes() arguments and buffer sizeFlorian Pritz1-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: clean up curl options; set follow locationFlorian Pritz1-2/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: remove unused warning for callback parametersFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: calculate a moving average of the upload speedFlorian Pritz1-5/+32
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: calculate ETA for the uploadFlorian Pritz1-3/+36
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25fb-helper.c: catch read() errorsFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-10make it more obvious that we convert from micro seconds to secondsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-10remove magic constantFlorian Pritz1-4/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-10-09fb-helper.c: main() to increase readabilityFlorian Pritz1-42/+49
This moves some code, removes a big if/else by bailing early and adds comments. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-10-09fb-helper.c: improve readabilityFlorian Pritz1-9/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-15use define instead of sed for VERSION expansion in helperFlorian Pritz1-0/+256
Signed-off-by: Florian Pritz <bluewind@xinu.at>